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

Method resetSession

src/engine/BaseEngine.cpp:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void BaseEngine::resetSession()
215{
216 // the order is important: first destroy old session
217 // GameSession's destructor will clean up worlds
218 m_Session = nullptr;
219 m_Session = std::make_unique<GameSession>(*this);
220}
221
222GameClock& BaseEngine::getGameClock()
223{

Callers 2

startNewGameMethod · 0.80
loadSaveGameSlotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected