Class atlas::world_scope
ClassList > atlas > world_scope
Lets rethink how world_scope gets created.More...
#include <world.hpp>
Inherits the following classes: std::enable_shared_from_this< world_scope >
Public Functions
Type | Name |
---|---|
void | add_scene (const ref< scene_scope > & p_scene_context) |
ref< world_scope > | get () |
ref< scene_scope > | get_scene (const std::string & p_tag) |
std::string | get_tag () const |
world & () |
|
world_scope () = default |
|
world_scope (const std::string & p_tag) |
|
~world_scope () |
Detailed Description
The way this works is system_registry is going to essentially be how we register worlds
Only difference is we aren't constructing it like: register_to(this)
What WE are going to do is world_handler = system_registry::create(p_tag);
What this does is essentially creates a world scope inside your world that you want to create and the system registry will create, manage, and keep track of lifetimes of world_scopes
Public Functions Documentation
function add_scene
void atlas::world_scope::add_scene (
const ref < scene_scope > & p_scene_context
)
function get
inline ref < world_scope > atlas::world_scope::get ()
function get_scene
inline ref < scene_scope > atlas::world_scope::get_scene (
const std::string & p_tag
)
function get_tag
inline std::string atlas::world_scope::get_tag () const
function world &
inline atlas::world_scope::world & ()
function world_scope [1/2]
atlas::world_scope::world_scope () = default
function world_scope [2/2]
atlas::world_scope::world_scope (
const std::string & p_tag
)
function ~world_scope
atlas::world_scope::~world_scope ()
The documentation for this class was generated from the following file TheAtlasEngine/atlas/core/scene/world.hpp