Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ pushState()

void Flint::StateManager::pushState ( std::unique_ptr< State > state)

Push a new state onto the stack and activate it.

Calls onExit() on the outgoing top (if any) and onEnter() on the new state.

Parameters
stateState instance to take ownership of and push.