diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-09 15:13:06 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-09 15:13:06 +0200 |
commit | 94fc3aca51a318b8124761a8315c020baeb9a0fb (patch) | |
tree | 91f611f6c7d3c216720c939f7e15b09c7c6d0ac7 /src/ChunkMap.h | |
parent | Revert "Temporarily commented out override directives." (diff) | |
parent | Merge pull request #1399 from mc-server/warnings (diff) | |
download | cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar.gz cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar.bz2 cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar.lz cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar.xz cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.tar.zst cuberite-94fc3aca51a318b8124761a8315c020baeb9a0fb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h index 8c564d0de..7354536d4 100644 --- a/src/ChunkMap.h +++ b/src/ChunkMap.h @@ -133,6 +133,9 @@ public: /** Copies the chunk's blocktypes into a_Blocks; returns true if successful */ bool GetChunkBlockTypes (int a_ChunkX, int a_ChunkZ, BLOCKTYPE * a_Blocks); + /** Returns true iff the chunk is in the loader / generator queue. */ + bool IsChunkQueued(int a_ChunkX, int a_ChunkZ); + bool IsChunkValid (int a_ChunkX, int a_ChunkZ); bool HasChunkAnyClients (int a_ChunkX, int a_ChunkZ); int GetHeight (int a_BlockX, int a_BlockZ); // Waits for the chunk to get loaded / generated @@ -278,12 +281,6 @@ public: /** Touches the chunk, causing it to be loaded or generated */ void TouchChunk(int a_ChunkX, int a_ChunkZ); - /** Loads the chunk, if not already loaded. Doesn't generate. Returns true if chunk valid (even if already loaded before) */ - bool LoadChunk(int a_ChunkX, int a_ChunkZ); - - /** Loads the chunks specified. Doesn't report failure, other than chunks being !IsValid() */ - void LoadChunks(const cChunkCoordsList & a_Chunks); - /** Marks the chunk as failed-to-load */ void ChunkLoadFailed(int a_ChunkX, int a_ChunkZ); |