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

Method putWorldToSleep

src/engine/GameSession.cpp:222–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void GameSession::putWorldToSleep(Handle::WorldHandle worldHandle)
223{
224 json worldJson;
225 worldHandle.get().exportWorld(worldJson);
226 addInactiveWorld(worldHandle.get().getZenFile(), std::move(worldJson));
227 removeWorld(worldHandle);
228}
229
230Handle::WorldHandle GameSession::addWorld(const std::string& worldFile,
231 const json& worldJson,

Callers 1

switchToWorldMethod · 0.80

Calls 2

exportWorldMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected