8#include <entt/locator/locator.hpp>
52 if (entt::locator<sol::state>::has_value())
54 entt::locator<sol::state>::value().collect_garbage();
Class for making creating and managing entities easier.
void on_push() override
When scene is pushed to the stack.
virtual ~Scene() noexcept
Destructor.
void update(EntityManager &em)
Process events and updates.
void on_pop() override
When scene is popped from the stack.
void on_event(SDL_Event &event)
Handle an event for a scene.
SystemManager m_sysman
Systems only used by this scene.
void render()
Render scene.
SystemManager & sys_man() noexcept
Get system manager.
Scene()=delete
Constructor.
A state to use in a finite state machine.
Manages the systems assigned to it.
void update(EntityManager &em, Scene *scene)
Process all systems.