system registry acts as a utility for managing creation of game worlds initially More...
#include <registry.hpp>
Public Member Functions | |
| system_registry (const std::string &p_name) | |
| construct a new system registry | |
Static Public Member Functions | |
| static ref< world > | create_world (const std::string &p_tag) |
| constructs a new world | |
| static ref< world > | get_world (const std::string &p_tag) |
| Searches and returns world if found. | |
system registry acts as a utility for managing creation of game worlds initially
Initially utilized to manage lifetimes of worlds and allow for by default setting to world #0, where we use few functions to get access to specific contexts
TODO: This is going to be replaced with a level streaming manager that will help manage, maintain, and default creationg of a world and a scene. With additional responsibilities in how the world context gets created.
| atlas::system_registry::system_registry | ( | const std::string & | p_name | ) |
construct a new system registry
| p_name | is for specifying a name to give this registry |
|
static |
constructs a new world
Initially this was used to create a world with a specified name associated with it
This was used for getting world to be maintained implicitly by system_registry, though this will be changing.
|
static |
Searches and returns world if found.
Returns nullptr if world not found
searches in getting the world and looks up based on its specified name