TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas.core.scene.game_object Module Reference

Classes

class  atlas::game_object
 Creates a pointer wrapper which extends capabilities of flecs::entity. More...
 

Typedefs

using atlas::game_object_optional = std::optional< game_object >
 Alias to std::optional<game_object>
 

Functions

 game_object ()=delete
 Should not construct a scene object not created through flecs::world.
 
 game_object (flecs::world_t *p_registry, flecs::entity_t p_id)
 
 game_object (const flecs::entity &p_base)
 
 game_object (flecs::entity &p_base)
 
void child_of (const std::optional< game_object > &p_parent)
 sets the entity to be a parent of the specified entity
 
template<typename UFunction >
void children (UFunction &&p_callback)
 iterates through all children entities if the given entity is a parent of any given entities
 

Files

file  TheAtlasEngine/atlas/core/scene/game_object.cppm