MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / removeAllWorlds

Method removeAllWorlds

src/engine/GameSession.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void GameSession::removeAllWorlds()
65{
66 while (!m_WorldInstances.empty())
67 {
68 Handle::WorldHandle w = m_Worlds.front();
69 removeWorld(w);
70 }
71 setMainWorld(Handle::WorldHandle::makeInvalidHandle());
72}
73
74void GameSession::setMainWorld(Handle::WorldHandle world)
75{

Callers

nothing calls this directly

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected