diff options
author | Mattes D <github@xoft.cz> | 2019-09-01 09:30:00 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-06 16:12:33 +0200 |
commit | a2ffa432b31096f2533ecb50f49ba450b29a2989 (patch) | |
tree | 5bdd754cad5e7b49e279ee0e21b9fa15c7c35d7b /src/Generating/ChunkDesc.h | |
parent | Updated LibEvent to release 2.1.11-stable. (#4383) (diff) | |
download | cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.gz cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.bz2 cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.lz cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.xz cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.zst cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.zip |
Diffstat (limited to 'src/Generating/ChunkDesc.h')
-rw-r--r-- | src/Generating/ChunkDesc.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Generating/ChunkDesc.h b/src/Generating/ChunkDesc.h index 709fccb70..997b640a3 100644 --- a/src/Generating/ChunkDesc.h +++ b/src/Generating/ChunkDesc.h @@ -39,15 +39,21 @@ public: typedef NIBBLETYPE BlockNibbleBytes[cChunkDef::NumBlocks]; - cChunkDesc(int a_ChunkX, int a_ChunkZ); + cChunkDesc(cChunkCoords a_Coords); ~cChunkDesc(); - void SetChunkCoords(int a_ChunkX, int a_ChunkZ); + void SetChunkCoords(cChunkCoords a_Coords); // tolua_begin - int GetChunkX(void) const { return m_ChunkX; } - int GetChunkZ(void) const { return m_ChunkZ; } + int GetChunkX() const { return m_Coords.m_ChunkX; } // Prefer GetChunkCoords() instead + int GetChunkZ() const { return m_Coords.m_ChunkZ; } // Prefer GetChunkCoords() instead + + // tolua_end + + cChunkCoords GetChunkCoords() const { return m_Coords; } + + // tolua_begin void FillBlocks(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); void SetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); @@ -225,8 +231,7 @@ public: #endif // _DEBUG private: - int m_ChunkX; - int m_ChunkZ; + cChunkCoords m_Coords; cChunkDef::BiomeMap m_BiomeMap; cBlockArea m_BlockArea; |