2012-02-13 16:47:03 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cBlockEntity.h"
|
|
|
|
|
2012-01-30 11:01:45 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
namespace Json
|
|
|
|
{
|
|
|
|
class Value;
|
|
|
|
}
|
|
|
|
|
2012-01-30 11:01:45 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-13 16:47:03 -05:00
|
|
|
class cSignEntity :
|
|
|
|
public cBlockEntity
|
2011-10-03 14:41:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2012-02-13 16:47:03 -05:00
|
|
|
cSignEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cWorld * a_World);
|
2011-10-03 14:41:19 -04:00
|
|
|
virtual ~cSignEntity();
|
|
|
|
|
2012-02-16 08:42:35 -05:00
|
|
|
OBSOLETE bool LoadFromFile(cFile & a_File); // deprecated format
|
2011-10-03 14:41:19 -04:00
|
|
|
|
|
|
|
bool LoadFromJson( const Json::Value& a_Value );
|
2012-02-16 08:42:35 -05:00
|
|
|
virtual void SaveToJson(Json::Value& a_Value ) override;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-13 16:47:03 -05:00
|
|
|
void SetLines( const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4 );
|
|
|
|
void SetLine( int a_Index, const AString & a_Line );
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-13 16:47:03 -05:00
|
|
|
AString GetLine( int a_Index ) const;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-15 09:22:44 -05:00
|
|
|
virtual void UsedBy( cPlayer * a_Player ) override;
|
2012-03-05 11:41:57 -05:00
|
|
|
|
|
|
|
virtual cPacket * GetPacket(void) override;
|
2012-02-13 16:47:03 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
private:
|
2012-02-13 16:47:03 -05:00
|
|
|
|
|
|
|
AString m_Line[4];
|
2012-01-30 11:01:45 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|