23#include "guillaume/ecs/component_type_id.hpp"
29 : _message(
"Exceeded maximum number of component types")
35 return _message.c_str();
38 std::size_t ComponentTypeId::nextId(
void)
40 static std::size_t currentId = 0;
Thrown by ComponentTypeId::get when a program uses more than MaxComponentTypes component types.
const char * what(void) const noexcept override
Get the exception message.
ComponentTypeLimitExceededException(void)
Build the exception with its fixed message.
The entity-component-system core, independent of any widget.
constexpr std::size_t MaxComponentTypes
Maximum number of distinct component types in one program.