Class ComponentType
Namespace: KenseiECS
Assigns a unique integer index to each component type and keeps the reverse map from index to Type. Indices are process-wide and stable for the lifetime of the app.
csharp
public static class ComponentTypeInheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Count
Total number of registered component types.
csharp
public static int Count { get; }Property Value
Methods
NameOf(int)
Short name of the component type registered under the given index.
csharp
public static string NameOf(int typeIndex)Parameters
typeIndex int
Returns
TypeOf(int)
Resolve a type index back to its component Type.
csharp
public static Type TypeOf(int typeIndex)Parameters
typeIndex int
