MCPcopy Create free account
hub / github.com/ddnet/ddnet / OnStateChange

Method OnStateChange

src/game/client/gameclient.cpp:1241–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239}
1240
1241void CGameClient::OnStateChange(int NewState, int OldState)
1242{
1243 // reset everything when not already connected (to keep gathered stuff)
1244 if(NewState < IClient::STATE_ONLINE)
1245 OnReset();
1246
1247 // then change the state
1248 for(auto &pComponent : m_vpAll)
1249 pComponent->OnStateChange(NewState, OldState);
1250}
1251
1252void CGameClient::OnShutdown()
1253{

Callers 1

SetStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected