8#include <entt/locator/locator.hpp>
18 void Lua::inject_scene() noexcept
20 auto& lua = entt::locator<sol::state>::value();
22 auto scene_type = lua.new_usertype<Scene>(
"Scene", sol::no_constructor);
30 auto sm_type = lua.new_usertype<SceneManager>(
"SceneManager", sol::no_constructor);
31 sm_type[
"add"] = [](SceneManager& self,
const std::string& key) {
void update()
Process events and updates.
void clear()
Removes all data.
void render()
Render scenes.
void on_push() override
When scene is pushed to the stack.
virtual void update(EntityManager &em)
Process events and updates.
void on_pop() override
When scene is popped from the stack.
virtual void render()
Render scene.
SystemManager & sys_man() noexcept
Get system manager.
void remove(const std::string &key)
bool has(const std::string &key) noexcept
std::shared_ptr< Stored > get(const std::string &key) noexcept
void push(const std::string &key) noexcept
std::shared_ptr< Stored > top() const noexcept
const std::string & name() const noexcept
Get state name.