Skip to content

Class Group<T1, T2, T3> ​

Namespace: KenseiECS

Owning group over three component types. Obtain via world.Group<T1, T2, T3>().

csharp
public sealed class Group<T1, T2, T3> : Group where T1 : struct, IComponent where T2 : struct, IComponent where T3 : struct, IComponent

Type Parameters ​

T1

Owned component type #1.

T2

Owned component type #2.

T3

Owned component type #3.

Inheritance ​

object ← Group ← Group<T1, T2, T3>

Inherited Members ​

Group.Count, Group.Entities, Group.PoolCount, Group.GetPool(int), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties ​

Data1 ​

T1 components of the members, aligned with Entities.

csharp
public Span<T1> Data1 { get; }

Property Value ​

Span<T1>

Data2 ​

T2 components of the members, aligned with Entities.

csharp
public Span<T2> Data2 { get; }

Property Value ​

Span<T2>

Data3 ​

T3 components of the members, aligned with Entities.

csharp
public Span<T3> Data3 { get; }

Property Value ​

Span<T3>