Class MemberBuilder
Names a member archetype's key field (Member<TArchetype>(Action<MemberBuilder>)).
public sealed class MemberBuilder
- Inheritance
-
MemberBuilder
- Inherited Members
Methods
Key<TComponent, TKey>(Comp<TComponent>, Expression<Func<TComponent, TKey>>)
The field holding the member's key: an integer field carrying [Index(AllowMultiple = true, Sparse = true)], 0 for no group.
public MemberBuilder Key<TComponent, TKey>(Comp<TComponent> component, Expression<Func<TComponent, TKey>> selector) where TComponent : unmanaged
Parameters
componentComp<TComponent>The component handle.
selectorExpression<Func<TComponent, TKey>>Selects the field, as one member access.
Returns
- MemberBuilder
This builder.
Type Parameters
TComponentThe component holding the field.
TKeyThe key's integer type.