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

Classes

class  atlas::scene
 Constructs a scene that defines an area where game objects are part of contained within an atlas::world. More...
 

Functions

 scene (const std::string &p_name, event::bus &p_bus)
 
game_object entity (std::string_view p_name)
 Retrieves if an entity already exists within the registry, create new entity otherwise.
 
game_object entity (uint64_t p_id)
 Retrieves if an entity already exists within the registry, create new entity otherwise.
 
template<typename UEventType , typename UObject , typename UCallback >
void subscribe (UObject *p_instance, const UCallback &p_callback)
 subscribes an event to the event::bus to get invoked when publishers notify all subscribers when an update is incoming
 
template<typename... Comps, typename... Args>
flecs::query_builder< Comps... > query_builder (Args &&... args) const
 queries components, returning entities (game objects) that contain those components queried with.
 
uint32_t children_count (const game_object &p_parent)
 
bool defer_begin ()
 Defer operations until end of frame. When this operation is invoked while iterating, operations inbetween the defer_begin() and defer_end() operations are executed at the end of the frame.
 
bool defer_end ()
 
std::string name () const
 
event::bus * event_handle () const
 
 operator flecs::world & ()
 Requires to return flecs::world is returned by reference to prevent making copies of flecs::world.
 

Files

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