Class RegionBuilder
Names a region archetype's key and extent fields (Region<TRegion>(Action<RegionBuilder>)).
public sealed class RegionBuilder
- Inheritance
-
RegionBuilder
- Inherited Members
Methods
Extent<TComponent, TExtent>(Comp<TComponent>, Expression<Func<TComponent, TExtent>>)
The field holding the region's extent: an AABB2F, AABB3F, BSphere2F or BSphere3F.
public RegionBuilder Extent<TComponent, TExtent>(Comp<TComponent> component, Expression<Func<TComponent, TExtent>> selector) where TComponent : unmanaged where TExtent : unmanaged
Parameters
componentComp<TComponent>The component handle.
selectorExpression<Func<TComponent, TExtent>>Selects the field, as one member access.
Returns
- RegionBuilder
This builder.
Type Parameters
TComponentThe component holding the field.
TExtentThe extent's type.
Key<TComponent, TKey>(Comp<TComponent>, Expression<Func<TComponent, TKey>>)
The field holding the region's key: an integer field, never 0 for a region that exists.
public RegionBuilder 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
- RegionBuilder
This builder.
Type Parameters
TComponentThe component holding the field.
TKeyThe key's integer type.