public static class ComponentRegistryThe process-wide table mapping component types to dense ids, assigned from 1 on first use.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Ids are assigned in the order types are first touched, which depends on what the program did — so they are stable within a process and meaningless outside one. Nothing persists them: a serialised world names component types by their Alias and sorts by that, not by id.
There is no unregister. A component type that has been seen keeps its id for the life of the process, because an archetype mask taken before it went away would otherwise start meaning something else.
Fields and properties (1)
public static int CountHow many component types have been registered.
Methods (3)
public static ComponentType Of<T>()The description for , registering it if this is the first ask.
public static ComponentType Get(ComponentTypeId id)The description for an already-registered id.
public static bool TryGet(Type type, out ComponentType? component)The description for a type, if it has been registered.
Used by (14)
- ArchetypeVixen.Ecs
- CommandBufferVixen.Ecs
- ComponentSignatureVixen.Ecs
- ComponentTypeVixen.Ecs
- ComponentTypeTestsVixen.Ecs.Tests
- QueryDescriptionVixen.Ecs
- SceneContentVixen.Engine
- SystemAccessVixen.Ecs
- SystemTestsVixen.Ecs.Tests
- WorldVixen.Ecs
- WorldDigestVixen.Ecs
- WorldSerializerVixen.Engine
- SceneCloneVixen.Editor.SceneView
- SceneSerializerVixen.Editor.SceneView