diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 17:01:45 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 17:01:45 +0100 |
commit | 51dc47bc70d66667ed1aee597d82dbdcfaf92fa1 (patch) | |
tree | 9e5fd39541516c0f8ced34b36f6e546bcd3886bb /source/cSignEntity.h | |
parent | Initial cFile implementation (using stdio FILE) and test in cChunkMap (diff) | |
download | cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar.gz cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar.bz2 cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar.lz cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar.xz cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.tar.zst cuberite-51dc47bc70d66667ed1aee597d82dbdcfaf92fa1.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cSignEntity.h | 17 |
1 files changed, 13 insertions, 4 deletions
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 <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];
-};
\ No newline at end of file +};
+
+
+
+
|