Class ComponentType<T>
Namespace: KenseiECS
Provides the unique type index for component type T. First access registers the type and assigns an index.
csharp
public static class ComponentType<T> where T : struct, IComponentType Parameters
T
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
Index
Unique index of T, assigned on first access.
csharp
public static readonly int Index