8#include "galaxy/error/Log.hpp"
41 GALAXY_LOG(GALAXY_WARNING,
"Tried to push a state that doesnt exist.");
#define GALAXY_LOG(level, msg,...)
void push(const std::string &key)
Push a new state onto the stack.
~StateMachine()
Destructor.
void pop()
Pop the topmost state off the top of the stack.
Stack m_stack
State stack.
void update()
Update topmost state.
StateMachine()
Constructor.
ankerl::unordered_dense::map< std::string, std::unique_ptr< State > > m_states
State cache.