diff options
author | andrew <xdotftw@gmail.com> | 2014-02-23 14:03:40 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-23 14:05:03 +0100 |
commit | f47187394572027cbfa07884cba2f54eaa6972ec (patch) | |
tree | 1f87d8d3f350b1d0c3faf5963c2ad74482ac3174 /src/World.h | |
parent | Manually exported DoWithMap (diff) | |
download | cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.gz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.bz2 cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.lz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.xz cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.tar.zst cuberite-f47187394572027cbfa07884cba2f54eaa6972ec.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/World.h b/src/World.h index f05ea9b2a..4b74f7aba 100644 --- a/src/World.h +++ b/src/World.h @@ -71,8 +71,7 @@ typedef cItemCallback<cMobHeadEntity> cMobHeadBlockCallback; class cWorld : public cForEachChunkProvider, public cWorldInterface, - public cBroadcastInterface, - public cMapManager + public cBroadcastInterface { public: @@ -582,9 +581,12 @@ public: /** Returns the name of the world.ini file used by this world */ const AString & GetIniFileName(void) const {return m_IniFileName; } - /** Returns the associated scoreboard instance */ + /** Returns the associated scoreboard instance. */ cScoreboard & GetScoreBoard(void) { return m_Scoreboard; } + /** Returns the associated map manager instance. */ + cMapManager & GetMapManager(void) { return m_MapManager; } + bool AreCommandBlocksEnabled(void) const { return m_bCommandBlocksEnabled; } void SetCommandBlocksEnabled(bool a_Flag) { m_bCommandBlocksEnabled = a_Flag; } @@ -850,6 +852,7 @@ private: cChunkGenerator m_Generator; cScoreboard m_Scoreboard; + cMapManager m_MapManager; /** The callbacks that the ChunkGenerator uses to store new chunks and interface to plugins */ cChunkGeneratorCallbacks m_GeneratorCallbacks; |