the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "TileEntity.h"
5
6#define MAX_SIGN_LINES 4
7
8class SignTileEntity : public TileEntity
9{
10public:
11 eINSTANCEOF GetType() { return eTYPE_SIGNTILEENTITY; }
12 static TileEntity *create() { return new SignTileEntity(); }
13public:
14 static const int MAX_LINE_LENGTH;
15
16public:
17 SignTileEntity();
18 virtual ~SignTileEntity();
19 wstring GetMessage(int i) { return m_wsmessages[i];}
20 wstring *GetMessages() { return m_wsmessages;}
21 void SetMessage(int iIndex,wstring &wsText);
22 int GetSelectedLine() {return m_iSelectedLine;}
23 void SetSelectedLine(int iLine) {m_iSelectedLine=iLine;}
24 bool IsVerified() {return m_bVerified;}
25 void SetVerified(bool bVerified) {m_bVerified=bVerified;}
26 bool IsCensored() {return m_bCensored;}
27 void SetCensored(bool bCensored) {m_bCensored=bCensored;}
28public:
29
30private:
31 shared_ptr<Player> playerWhoMayEdit;
32 bool _isEditable;
33 bool m_bVerified;
34 bool m_bCensored;
35 int m_iSelectedLine;
36
37 wstring m_wsmessages[MAX_SIGN_LINES];
38
39public:
40 virtual void save(CompoundTag *tag);
41 virtual void load(CompoundTag *tag);
42 virtual shared_ptr<Packet> getUpdatePacket();
43 bool isEditable();
44 void setEditable(bool isEditable);
45 void setAllowedPlayerEditor(shared_ptr<Player> player);
46 shared_ptr<Player> getPlayerWhoMayEdit();
47 virtual void setChanged();
48 static int StringVerifyCallback(LPVOID lpParam,STRING_VERIFY_RESPONSE *pResults);
49
50 // 4J Added
51 virtual shared_ptr<TileEntity> clone();
52};