55 static std::atomic<ComponentType> lastID{0};
56 return lastID.fetch_add(1);
Base interface for all ECS components.
virtual ~IComponent()=default
Virtual destructor.
virtual ComponentType getType() const =0
Get the unique type identifier for this component.
Maximum number of distinct component types supported by the Registry.
std::size_t ComponentType
Type alias for component identification.
ComponentType getUniqueComponentType()
Generates a unique ID for each component type.
ComponentType getComponentType()
Get the unique type ID for a specific component type.