diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2016-02-06 11:37:34 +0100 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2016-02-06 11:37:34 +0100 |
commit | 6fdd7194c81be7234a126bdc3b48f0291fce3567 (patch) | |
tree | 7d5ac74b7385ce4ebf77588d80549c884c2b993c /src/SetChunkData.h | |
parent | Merge pull request #2958 from LogicParrot/fence (diff) | |
parent | Bulk clearing of whitespace (diff) | |
download | cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar.gz cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar.bz2 cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar.lz cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar.xz cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.tar.zst cuberite-6fdd7194c81be7234a126bdc3b48f0291fce3567.zip |
Diffstat (limited to '')
-rw-r--r-- | src/SetChunkData.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/SetChunkData.h b/src/SetChunkData.h index bf5283569..2f3c3d6a3 100644 --- a/src/SetChunkData.h +++ b/src/SetChunkData.h @@ -47,50 +47,50 @@ public: cBlockEntityList && a_BlockEntities, bool a_ShouldMarkDirty ); - + int GetChunkX(void) const { return m_ChunkX; } int GetChunkZ(void) const { return m_ChunkZ; } - + /** Returns the internal storage of the block types, read-only. */ const cChunkDef::BlockTypes & GetBlockTypes(void) const { return m_BlockTypes; } - + /** Returns the internal storage of the block types, read-only. */ const cChunkDef::BlockNibbles & GetBlockMetas(void) const { return m_BlockMetas; } - + /** Returns the internal storage of the block light, read-only. */ const cChunkDef::BlockNibbles & GetBlockLight(void) const { return m_BlockLight; } - + /** Returns the internal storage of the block types, read-only. */ const cChunkDef::BlockNibbles & GetSkyLight(void) const { return m_SkyLight; } - + /** Returns the internal storage for heightmap, read-only. */ const cChunkDef::HeightMap & GetHeightMap(void) const { return m_HeightMap; } - + /** Returns the internal storage for biomes, read-write. */ cChunkDef::BiomeMap & GetBiomes(void) { return m_Biomes; } - + /** Returns the internal storage for entities, read-write. */ cEntityList & GetEntities(void) { return m_Entities; } - + /** Returns the internal storage for block entities, read-write. */ cBlockEntityList & GetBlockEntities(void) { return m_BlockEntities; } - + /** Returns whether both light arrays stored in this object are valid. */ bool IsLightValid(void) const { return m_IsLightValid; } - + /** Returns whether the heightmap stored in this object is valid. */ bool IsHeightMapValid(void) const { return m_IsHeightMapValid; } /** Returns whether the biomes stored in this object are valid. */ bool AreBiomesValid(void) const { return m_AreBiomesValid; } - + /** Returns whether the chunk should be marked as dirty after its data is set. Used by the generator to save chunks after generating. */ bool ShouldMarkDirty(void) const { return m_ShouldMarkDirty; } - + /** Marks the biomes stored in this object as valid. */ void MarkBiomesValid(void) { m_AreBiomesValid = true; } - + /** Calculates the heightmap based on the contained blocktypes and marks it valid. */ void CalculateHeightMap(void); @@ -100,7 +100,7 @@ public: protected: int m_ChunkX; int m_ChunkZ; - + cChunkDef::BlockTypes m_BlockTypes; cChunkDef::BlockNibbles m_BlockMetas; cChunkDef::BlockNibbles m_BlockLight; @@ -109,7 +109,7 @@ protected: cChunkDef::BiomeMap m_Biomes; cEntityList m_Entities; cBlockEntityList m_BlockEntities; - + bool m_IsLightValid; bool m_IsHeightMapValid; bool m_AreBiomesValid; |