|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Gives each component type a small number: its bit position in an Entity::Signature. More...
#include <headers/guillaume/ecs/component_type_id.hpp>
Static Public Member Functions | |
| template<typename ComponentType> | |
| static std::size_t | get (void) |
| Get the number of a component type, assigning one on the first call for that type. | |
Gives each component type a small number: its bit position in an Entity::Signature.
Numbers are handed out in the order the types are first asked for, starting at 0, and stay the same for the rest of the program. They are not stable from one run to the next, so never store them.
Definition at line 78 of file component_type_id.hpp.
|
inlinestatic |
Get the number of a component type, assigning one on the first call for that type.
| ComponentType | The component type. |
| ComponentTypeLimitExceededException | On the first call for a type when MaxComponentTypes numbers are already in use. |
Definition at line 90 of file component_type_id.hpp.