From 578560d2132188279e4b0930212edd915bc90008 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 1 Apr 2013 20:56:25 +0000 Subject: Proper fix for FS #347. Also unification of ticking block entities. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1348 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FurnaceEntity.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'source/FurnaceEntity.h') diff --git a/source/FurnaceEntity.h b/source/FurnaceEntity.h index bcdc8d837..8373116d4 100644 --- a/source/FurnaceEntity.h +++ b/source/FurnaceEntity.h @@ -32,19 +32,15 @@ public: static const char * GetClassStatic() { return "cFurnaceEntity"; } - bool LoadFromFile(cFile & a_File); // deprecated format - - bool LoadFromJson(const Json::Value& a_Value ); - virtual void SaveToJson(Json::Value& a_Value ) override; - - virtual void SendTo(cClientHandle & a_Client) override; + bool LoadFromJson(const Json::Value & a_Value); - // Returns true if there's any change, forcing the chunk to go dirty. - bool Tick( float a_Dt ); - - virtual void UsedBy( cPlayer * a_Player ) override; + // cBlockEntity overrides: + virtual void SaveToJson(Json::Value & a_Value) override; + virtual void SendTo(cClientHandle & a_Client) override; + virtual bool Tick(float a_Dt) override; + virtual void UsedBy(cPlayer * a_Player) override; - bool StartCooking(); + bool StartCooking(void); /// Restarts cooking. Used after the furnace is loaded from storage to set up the internal variables so that cooking continues, if it was active. Returns true if cooking. bool ContinueCooking(void); -- cgit v1.2.3