8#include <entt/locator/locator.hpp>
19 auto& lua = entt::locator<sol::state>::value();
21 auto state_type = lua.new_usertype<
State>(
"State", sol::no_constructor);
static void inject_state() noexcept
Injects galaxy state machine requirements into lua.
A state to use in a finite state machine.
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.