| 45 | } |
| 46 | |
| 47 | nlohmann::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 | |
| 59 | GameClock& GameSession::getGameClock() |
| 60 | { |