MCPcopy Create free account
hub / github.com/MyGUI/mygui / pushState

Method pushState

Tools/EditorFramework/StateManager.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 void StateManager::pushState(StateController* _state)
28 {
29 MYGUI_ASSERT(_state != nullptr, "State not found");
30 MYGUI_ASSERT(std::find(mStates.begin(), mStates.end(), _state) == mStates.end(), "State already added");
31
32 StateController* pauseState = getCurentState();
33
34 mStates.push_back(_state);
35
36 if (pauseState != nullptr)
37 pauseState->pauseState();
38
39 _state->initState();
40 }
41
42 void StateManager::pushState(std::string_view _stateName)
43 {

Callers 4

LoadStatesMethod · 0.80
LoadStatesMethod · 0.80
LoadStatesMethod · 0.80
LoadStatesMethod · 0.80

Calls 5

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
pauseStateMethod · 0.45
initStateMethod · 0.45

Tested by

no test coverage detected