Interface · Ara
IComponent<TSelf>
Implemented by the generated code of every component struct, so lookups need no reflection (AOT-safe).
public interface IComponent<TSelf> where TSelf : IComponent<TSelf>Properties
TypeIndex
public static uint TypeIndex { get; }Script component index assigned by the host.
Methods
Access
public static ref TSelf Access(Entity entity, bool write);Generated storage access; native module components use checked column pointers.
Insert
public static void Insert(in Commands commands, Entity entity, in TSelf value);Generated structural serialization.
Contains
public static bool Contains(Entity entity);Checks presence without loading a value.