8#include <entt/locator/locator.hpp>
17 void Lua::inject_state() noexcept
19 auto& lua = entt::locator<sol::state>::value();
21 auto state_type = lua.new_usertype<State>(
"State", sol::no_constructor);
virtual void on_push()=0
Triggered when state is pushed onto the stack.
virtual void on_pop()=0
Triggered when state is popped off the stack.
const std::string & name() const noexcept
Get state name.