← API Reference Struct

template<typename T> asge::ecs::ComponentCapacity

Compile-time component storage capacity for a component type T.

#include <ComponentTypeId.hpp>

Defaults every component to kMaxEntities; specialize this trait for a specific T to give its ComponentPool a smaller or larger Nc instead, independent of how many entities the world can hold.

Template Parameters
T

Component type being sized.

Static Public Attributes

#static constexpr std::size_t value = kMaxEntities