Table of Contents

Class RegionBuilder

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

component Comp<TComponent>

The component handle.

selector Expression<Func<TComponent, TExtent>>

Selects the field, as one member access.

Returns

RegionBuilder

This builder.

Type Parameters

TComponent

The component holding the field.

TExtent

The 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

component Comp<TComponent>

The component handle.

selector Expression<Func<TComponent, TKey>>

Selects the field, as one member access.

Returns

RegionBuilder

This builder.

Type Parameters

TComponent

The component holding the field.

TKey

The key's integer type.