21 game_object(flecs::world_t* p_registry, flecs::entity_t p_id);
48 void child_of(
const std::optional<game_object>& p_parent);
71 template<
typename UFunction>
83 using game_object_optional = std::optional<game_object>;
Creates a pointer wrapper which extends capabilities of flecs::entity.
Definition game_object.hpp:15
void children(UFunction &&p_callback)
iterates through all children entities if the given entity is a parent of any given entities
Definition game_object.hpp:72
void child_of(const std::optional< game_object > &p_parent)
sets the entity to be a parent of the specified entity
game_object()=delete
Should not construct a scene object not created through flecs::world.