Vixen
02b45cc4
csharp
public sealed class ComponentType

Everything 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 Id

    The dense id archetype masks and chunk layouts are keyed on.

  • public Type Type

    The CLR type.

  • public int Size

    How 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 Alignment

    The alignment a chunk gives the column, so a vectorised sweep over it is legal.

  • public bool IsManaged

    Whether the type is or contains a reference, and so lives in the world's managed store with the chunk holding a handle.

  • public bool IsTag

    Whether 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