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

Method retrieveInactiveWorld

src/engine/GameSession.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47nlohmann::json GameSession::retrieveInactiveWorld(const std::string& worldName)
48{
49 if (hasInactiveWorld(worldName))
50 {
51 nlohmann::json worldJson(std::move(m_InactiveWorlds[worldName]));
52 m_InactiveWorlds.erase(worldName);
53 return worldJson;
54 }
55 else
56 return nlohmann::json();
57}
58
59GameClock& GameSession::getGameClock()
60{

Callers 1

switchToWorldMethod · 0.80

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected