diff options
author | madmaxoft <github@xoft.cz> | 2014-07-24 18:32:05 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-24 18:32:05 +0200 |
commit | c0b62ef139a65ca648135fb6999e6623438fdd71 (patch) | |
tree | 7b7c2bf9ec889308163f8a53dee9e9d4e23025be /src/ChunkMap.h | |
parent | Made the cWorld::SpawnMobFinalize function more readable. (diff) | |
download | cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.gz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.bz2 cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.lz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.xz cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.tar.zst cuberite-c0b62ef139a65ca648135fb6999e6623438fdd71.zip |
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r-- | src/ChunkMap.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 4be1a4752..e33d9f894 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -34,6 +34,7 @@ class cChunkDataSerializer; class cBlockArea; class cMobCensus; class cMobSpawner; +class cSetChunkData; typedef std::list<cClientHandle *> cClientHandleList; typedef cChunk * cChunkPtr; @@ -112,22 +113,11 @@ public: void MarkChunkSaved (int a_ChunkX, int a_ChunkZ); /** Sets the chunk data as either loaded from the storage or generated. - a_BlockLight and a_BlockSkyLight are optional, if not present, chunk will be marked as unlighted. - a_BiomeMap is optional, if not present, biomes will be calculated by the generator - a_HeightMap is optional, if not present, will be calculated. - If a_MarkDirty is set, the chunk is set as dirty (used after generating) + BlockLight and BlockSkyLight are optional, if not present, chunk will be marked as unlighted. + If MarkDirty is set, the chunk is set as dirty (used after generating) + Modifies the BlockEntity list in a_SetChunkData - moves the block entities into the chunk. */ - void SetChunkData( - int a_ChunkX, int a_ChunkZ, - const BLOCKTYPE * a_BlockTypes, - const NIBBLETYPE * a_BlockMeta, - const NIBBLETYPE * a_BlockLight, - const NIBBLETYPE * a_BlockSkyLight, - const cChunkDef::HeightMap * a_HeightMap, - const cChunkDef::BiomeMap & a_BiomeMap, - cBlockEntityList & a_BlockEntities, - bool a_MarkDirty - ); + void SetChunkData(cSetChunkData & a_SetChunkData); void ChunkLighted( int a_ChunkX, int a_ChunkZ, |