summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-08 13:36:54 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-08 13:36:54 +0100
commit32880153ab76830311d8a1db3a157cd5ac6e5d9c (patch)
treec7c77a8c5b6bf86f3f18655e8ec976c30a5c8c15 /source/cChunkMap.h
parentcSocketThreads plugged in for cClientHandle reading. Sending still kept the old way. Please help me test this commit thoroughly, this is a change that can break on subtleties. (diff)
downloadcuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar.gz
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar.bz2
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar.lz
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar.xz
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.tar.zst
cuberite-32880153ab76830311d8a1db3a157cd5ac6e5d9c.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkMap.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/source/cChunkMap.h b/source/cChunkMap.h
index f2d1f4468..9cab98221 100644
--- a/source/cChunkMap.h
+++ b/source/cChunkMap.h
@@ -1,8 +1,19 @@
+
#pragma once
+
+
+
+
class cWorld;
class cEntity;
class cChunk;
+class MTRand;
+
+
+
+
+
class cChunkMap
{
public:
@@ -15,7 +26,7 @@ public:
cChunk* GetChunk( int a_X, int a_Y, int a_Z );
void RemoveChunk( cChunk* a_Chunk );
- void Tick( float a_Dt );
+ void Tick( float a_Dt, MTRand & a_TickRand );
void UnloadUnusedChunks();
bool RemoveEntityFromChunk( cEntity & a_Entity, cChunk* a_CalledFrom = 0 );
@@ -24,7 +35,9 @@ public:
cWorld* GetWorld() { return m_World; }
int GetNumChunks();
+
private:
+
class cChunkData
{
public:
@@ -75,3 +88,7 @@ private:
cWorld* m_World;
};
+
+
+
+