diff options
author | andrew <xdotftw@gmail.com> | 2014-02-13 20:36:24 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-02-13 20:36:24 +0100 |
commit | 32b465b8e1e1a6fa9e966a1376209f292331d4ae (patch) | |
tree | ca6e9abef0390dbd377c3cbf77fd25b34bade078 /src/WorldStorage/MapSerializer.h | |
parent | Implementation of in-game maps (diff) | |
download | cuberite-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/WorldStorage/MapSerializer.h')
-rw-r--r-- | src/WorldStorage/MapSerializer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/WorldStorage/MapSerializer.h b/src/WorldStorage/MapSerializer.h index 71791a2fb..d9da107bc 100644 --- a/src/WorldStorage/MapSerializer.h +++ b/src/WorldStorage/MapSerializer.h @@ -50,3 +50,28 @@ private: +class cIDCountSerializer +{ +public: + + cIDCountSerializer(const AString & a_WorldName); + + bool Load(void); + + bool Save(void); + + inline unsigned int GetMapCount(void) const { return m_MapCount; } + + inline void SetMapCount(unsigned int a_MapCount) { m_MapCount = a_MapCount; } + + +private: + + AString m_Path; + + unsigned int m_MapCount; +}; + + + + |