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

Method addWorld

src/engine/GameSession.cpp:230–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230Handle::WorldHandle GameSession::addWorld(const std::string& worldFile,
231 const json& worldJson,
232 const json& scriptEngine,
233 const json& dialogManager,
234 const json& logManager)
235{
236 std::unique_ptr<World::WorldInstance> pWorldInstance = createWorld("", worldJson, scriptEngine, dialogManager, logManager);
237 return registerWorld(std::move(pWorldInstance));
238}
239
240void GameSession::startNewGame(const std::string& worldFile)
241{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected