struct ecs::TagGroup

template<typename Storage, typename ...Tags>

Compile-time grouping of related ECS tag types for serialization.

Each tag's position in the parameter list determines its bit index in the serialized integer representation. When serialized, a TagGroup produces a single integer where bit N is set if the Nth tag is present on the entity.

Template parameters

Storage

Unsigned integer type for the serialized bitfield (u8, u16, or u32). Must be large enough to hold one bit per tag.

Tags

Empty struct types representing tags. All types must satisfy std::is_empty_v.