From 9d6a5b9ce0ea5fbbb377b6a950ec1f27ae6a1587 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 29 May 2012 14:59:43 +0000 Subject: Added code for the chunks to manipulate their neighbors while ticking. Also added some basic farming support - melon and pumpkin growing code. Untested and untestable so far, will test and fix later. git-svn-id: http://mc-server.googlecode.com/svn/trunk@518 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index e030f3570..5e448d79b 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -278,9 +278,6 @@ public: void Tick(float a_Dt); - void ReSpreadLighting(int a_ChunkX, int a_ChunkY, int a_ChunkZ); - void RemoveSpread(int a_ChunkX, int a_ChunkY, int a_ChunkZ); - void InitializeSpawn(); void CastThunderbolt (int a_X, int a_Y, int a_Z); //tolua_export @@ -291,6 +288,8 @@ public: cWorldStorage & GetStorage (void) { return m_Storage; } cChunkMap * GetChunkMap (void) { return m_ChunkMap; } + bool IsPlacingItemLegal(Int16 a_ItemType, int a_BlockX, int a_BlockY, int a_BlockZ); + private: friend class cRoot; @@ -344,9 +343,6 @@ private: cClientHandleList m_Clients; cPlayerList m_Players; - cCriticalSection m_CSLighting; - cChunkCoordsList m_SpreadQueue; - cCriticalSection m_CSFastSetBlock; sSetBlockList m_FastSetBlockQueue; -- cgit v1.2.3