summaryrefslogtreecommitdiffstats
path: root/src/ChunkDef.h
diff options
context:
space:
mode:
authorLO1ZB <andreasdaamen@web.de>2014-09-03 00:14:51 +0200
committerLO1ZB <andreasdaamen@web.de>2014-09-03 00:14:51 +0200
commita600e3bdfef5514d28475b6574f1c78ee74ed214 (patch)
tree9b12e05a5e48e3f65dba0397f5c5f7292637829d /src/ChunkDef.h
parentfix possibility of a twice generated chunk (diff)
downloadcuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.gz
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.bz2
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.lz
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.xz
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.zst
cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkDef.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ChunkDef.h b/src/ChunkDef.h
index 111e081db..ded0bdf4c 100644
--- a/src/ChunkDef.h
+++ b/src/ChunkDef.h
@@ -389,6 +389,27 @@ typedef std::vector<cChunkCoords> cChunkCoordsVector;
+class cChunkCoordsWithBool
+{
+public:
+ int m_ChunkX;
+ int m_ChunkZ;
+ bool m_ForceGenerate;
+
+ cChunkCoordsWithBool(int a_ChunkX, int a_ChunkZ, bool a_ForceGenerate) : m_ChunkX(a_ChunkX), m_ChunkZ(a_ChunkZ), m_ForceGenerate(a_ForceGenerate){}
+
+ bool operator == (const cChunkCoordsWithBool & a_Other) const
+ {
+ return ((m_ChunkX == a_Other.m_ChunkX) && (m_ChunkZ == a_Other.m_ChunkZ) && (m_ForceGenerate == a_Other.m_ForceGenerate));
+ }
+};
+
+typedef std::list<cChunkCoordsWithBool> cChunkCoordWithBoolList;
+
+
+
+
+
/// Interface class used as a callback for operations that involve chunk coords
class cChunkCoordCallback
{