diff options
Diffstat (limited to 'src/Root.h')
-rw-r--r-- | src/Root.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Root.h b/src/Root.h index 261dac29f..2ce0e7c32 100644 --- a/src/Root.h +++ b/src/Root.h @@ -57,6 +57,9 @@ public: void Start(std::unique_ptr<cSettingsRepositoryInterface> a_OverridesRepo); + /** Stops the server, as if "/stop" was typed in the console. */ + void StopServer(); + // tolua_begin cServer * GetServer(void) { return m_Server; } cWorld * GetDefaultWorld(void); @@ -66,6 +69,7 @@ public: */ cWorld * GetWorld(const AString & a_WorldName, bool a_SearchForFolder = false); + /** Returns a pointer to a world of specified name - will search loaded worlds first, then create anew if not found The dimension parameter is used to create a world with a specific dimension a_OverworldName should be set for non-overworld dimensions if one wishes that world to link back to an overworld via portals |