summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-02-13 20:36:24 +0100
committerandrew <xdotftw@gmail.com>2014-02-13 20:36:24 +0100
commit32b465b8e1e1a6fa9e966a1376209f292331d4ae (patch)
treeca6e9abef0390dbd377c3cbf77fd25b34bade078 /src/World.h
parentImplementation of in-game maps (diff)
downloadcuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.gz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.bz2
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.lz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.xz
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.tar.zst
cuberite-32b465b8e1e1a6fa9e966a1376209f292331d4ae.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index fa83fe73e..02e56a247 100644
--- a/src/World.h
+++ b/src/World.h
@@ -24,6 +24,7 @@
#include "Entities/ProjectileEntity.h"
#include "ForEachChunkProvider.h"
#include "Scoreboard.h"
+#include "Map.h"
#include "Blocks/WorldInterface.h"
#include "Blocks/BroadcastInterface.h"
@@ -811,6 +812,10 @@ private:
cChunkGenerator m_Generator;
cScoreboard m_Scoreboard;
+
+ typedef std::vector<cMap> cMapList;
+
+ cMapList m_MapData;
/** The callbacks that the ChunkGenerator uses to store new chunks and interface to plugins */
cChunkGeneratorCallbacks m_GeneratorCallbacks;
@@ -876,6 +881,12 @@ private:
/** Creates a new redstone simulator.*/
cRedstoneSimulator * InitializeRedstoneSimulator(cIniFile & a_IniFile);
+
+ /** Loads the map data from the disk */
+ void LoadMapData(void);
+
+ /** Saves the map data to the disk */
+ void SaveMapData(void);
}; // tolua_export