Files
cuberite-2a/source/cSignEntity.h
T

46 lines
755 B
C++
Raw Normal View History

2011-10-03 18:41:19 +00:00
#pragma once
#include "cBlockEntity.h"
2011-10-03 18:41:19 +00:00
namespace Json
{
class Value;
}
class cSignEntity :
public cBlockEntity
2011-10-03 18:41:19 +00:00
{
public:
cSignEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cWorld * a_World);
2011-10-03 18:41:19 +00:00
virtual ~cSignEntity();
bool LoadFromJson( const Json::Value& a_Value );
virtual void SaveToJson(Json::Value& a_Value ) override;
2011-10-03 18:41:19 +00: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 18:41:19 +00:00
AString GetLine( int a_Index ) const;
2011-10-03 18:41:19 +00:00
virtual void UsedBy( cPlayer * a_Player ) override;
virtual cPacket * GetPacket(void) override;
2011-10-03 18:41:19 +00:00
private:
AString m_Line[4];
};