Пример #1
0
 public void SetText(UserString s)
 {
     if (Validate())
     {
         text = s;
     }
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
 public void Init()
 {
     x    = -1;
     y    = -1;
     text = null;
 }
Пример #4
0
 public void Read(PacketReader packetIn)
 {
     x    = packetIn.ReadInt16();
     y    = packetIn.ReadInt16();
     text = new UserString(packetIn);
 }