Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
mixin.inl
Go to the documentation of this file.
1
11template <typename E, if_t< is_enum<E>::value > = 0>
component< T > & constant(const char *name, T value)
Add a constant.
Definition component.inl:38
flecs::entity to_entity(E constant) const
Convert an enum constant to an entity.
Entity.
Definition entity.hpp:30