From 51dc47bc70d66667ed1aee597d82dbdcfaf92fa1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 30 Jan 2012 16:01:45 +0000 Subject: More cFile cleanup; removed old format writing for block entities git-svn-id: http://mc-server.googlecode.com/svn/trunk@193 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSignEntity.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'source/cSignEntity.h') diff --git a/source/cSignEntity.h b/source/cSignEntity.h index b0e95e38c..31413c8c3 100644 --- a/source/cSignEntity.h +++ b/source/cSignEntity.h @@ -3,13 +3,19 @@ #include "cBlockEntity.h" #include "FileDefine.h" -#include + + + namespace Json { class Value; } + + + + class cWorld; class cSignEntity : public cBlockEntity { @@ -17,8 +23,7 @@ public: cSignEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cChunk* a_Chunk); virtual ~cSignEntity(); - void WriteToFile(FILE* a_File); - bool LoadFromFile(FILE* a_File); + bool LoadFromFile(cFile & a_File); // deprecated format bool LoadFromJson( const Json::Value& a_Value ); void SaveToJson( Json::Value& a_Value ); @@ -32,4 +37,8 @@ public: virtual void SendTo( cClientHandle* a_Client ); private: std::string m_Line[4]; -}; \ No newline at end of file +}; + + + + -- cgit v1.2.3