Skip to content

Engine → ECS

entity.h

Handle of one entity: record index plus generation. Trivially copyable, 8 bytes, mirrored by the C# Entity struct through to_u64()/from_u64(). Alignment is 4 ({u32, u32}); core::reflect caps a handle field's expected alignment at the owning type's alignment, so a reflected component may place entity fields at any 4-byte aligned offset without alignas(8).

Structs

File Description
conjure::core::reflect::reflect_kind_override<conjure::ecs::entity>
entity Handle of one entity: record index plus generation. Trivially copyable, 8 bytes, mirrored by the C# Entity struct through to_u64()/from_u64(). Alignment is 4 ({u32, u32}); core::reflect caps a handle field's expected alignment at the owning type's alignment, so a reflected component may place entity fields at any 4-byte aligned offset without alignas(8).
std::formatter<conjure::ecs::entity>
std::hash<conjure::ecs::entity>

Classes

File Description
entity_remap Maps archive-local references to real entities: entry i of the table is the entity created for archive entry i. Built once per instantiated copy of an archive and applied to every entity field of the copy.

Constants

Name Type Value Description
ARCHIVE_LOCAL_GENERATION inline constexpr u32 0xFFFFFFFFu Generation that marks an archive-local reference: the index is an entry index inside the archive. The allocator never issues it.
NULL_ENTITY inline constexpr entity {} The null entity. Never alive in any world.