diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 11:45:53 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 11:45:53 +0100 |
commit | 230f98a774d956934e42cb4ba7b2cddcdc365676 (patch) | |
tree | 0049f65fefb73d9bd8c4c3adcc076634451d5271 /source/cWorld.h | |
parent | VC2008: slight project reorganization, chunk-generation-related sources are now in one folder (diff) | |
download | cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar.gz cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar.bz2 cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar.lz cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar.xz cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.tar.zst cuberite-230f98a774d956934e42cb4ba7b2cddcdc365676.zip |
Diffstat (limited to 'source/cWorld.h')
-rw-r--r-- | source/cWorld.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/cWorld.h b/source/cWorld.h index a6f2ce7fb..a0dd435d9 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -127,10 +127,16 @@ public: /// Touches the chunk, causing it to be loaded or generated
void TouchChunk(int a_ChunkX, int a_ChunkY, 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_ChunkY, int a_ChunkZ);
+
+ /// Loads the chunks specified. Doesn't report failure, other than chunks being !IsValid()
+ void LoadChunks(const cChunkCoordsList & a_Chunks);
+
void UpdateSign(int a_X, int a_Y, int a_Z, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4);
- /// Marks (a_Stay == true) or unmarks (a_Stay == false) a chunk as non-unloadable; to be used only by cChunkStay!
- void ChunkStay(int a_ChunkX, int a_ChunkY, int a_ChunkZ, bool a_Stay = true);
+ /// Marks (a_Stay == true) or unmarks (a_Stay == false) chunks as non-unloadable. To be used only by cChunkStay!
+ void ChunksStay(const cChunkCoordsList & a_Chunks, bool a_Stay = true);
// TODO: Export to Lua
bool DoWithEntity( int a_UniqueID, cEntityCallback & a_Callback );
|