8#include <entt/locator/locator.hpp>
42 if (entt::locator<sol::state>::has_value())
44 entt::locator<sol::state>::value().collect_garbage();
55 system->update(registry);
91 auto& sf = entt::locator<SystemFactory>::value();
Wrapper around entt::registry to expand functionality.
void on_push() override
When scene is pushed to the stack.
SystemStack m_systems
List of systems to process.
void on_pop() override
When scene is popped from the stack.
void clear()
Remove all scene data.
virtual ~Scene()
Destructor.
void add_system(const std::string &system)
Add a system to operate on entities in this scene.
void render()
Render scene.
void update(Registry ®istry)
Process events and updates.
Scene()=delete
Constructor.
A state to use in a finite state machine.