public void SetText(UserString s) { if (Validate()) { text = s; } }
public void Read(BinaryReader fileIO, int release) { if (fileIO.ReadBoolean()) { if (release >= 49) { x = fileIO.ReadInt16(); y = fileIO.ReadInt16(); text = new UserString(fileIO); } else { text = fileIO.ReadString(); x = fileIO.ReadInt16(); y = fileIO.ReadInt16(); } Validate(); } }
public void Init() { x = -1; y = -1; text = null; }
public void Read(PacketReader packetIn) { x = packetIn.ReadInt16(); y = packetIn.ReadInt16(); text = new UserString(packetIn); }