public sealed class ComponentTypeEverything the storage layer needs to know about one component type: its dense id, how many bytes a chunk gives it per entity, and whether the bytes are the value or a handle to it.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public ComponentTypeId IdThe dense id archetype masks and chunk layouts are keyed on.
public Type TypeThe CLR type.
public int SizeHow many bytes this occupies per entity in a chunk: the value's size for a plain struct, four for a managed component's handle, zero for a tag.
public int AlignmentThe alignment a chunk gives the column, so a vectorised sweep over it is legal.
public bool IsManagedWhether the type is or contains a reference, and so lives in the world's managed store with the chunk holding a handle.
public bool IsTagWhether the type is a data-free ITagComponent.
Methods (1)
public override string ToString()Renders the type name and id, which is what a diagnostic wants.
Used by (16)
- ArchetypeVixen.Ecs
- ChunkVixen.Ecs
- CommandBufferVixen.Ecs
- ComponentRegistryVixen.Ecs
- ComponentSignatureVixen.Ecs
- ComponentTypeVixen.Ecs
- ComponentTypeTestsVixen.Ecs.Tests
- QueryDescriptionVixen.Ecs
- SceneComponentBinderVixen.Engine
- SceneContentVixen.Engine
- SystemAccessVixen.Ecs
- WorldVixen.Ecs
- WorldDigestVixen.Ecs
- WorldSerializerVixen.Engine
- SceneCloneVixen.Editor.SceneView
- SceneSerializerVixen.Editor.SceneView