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
This commit is contained in:
+13
-4
@@ -3,13 +3,19 @@
|
||||
#include "cBlockEntity.h"
|
||||
#include "FileDefine.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
|
||||
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];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user