Example #1
0
 private void ReadTextModule(BinaryReader reader)
 {
     moduleValue.Clear();
     if (Side == Side.Server)
     {
         moduleValue["authorId"] = reader.ReadByte();
         var text = new NetworkText();
         text.OnDeserialize(reader);
         moduleValue["text"] = text;
         var color = new Color();
         color.OnDeserialize(reader);
         moduleValue["color"] = color;
     }
     else if (Side == Side.Client)
     {
         var cmdId = reader.ReadString();
         moduleValue["cmdId"] = cmdId;
         var text = reader.ReadString();
         moduleValue["text"] = text;
     }
 }
Example #2
0
 public void OnDeserialize(BinaryReader reader)
 {
     kickMsg.OnDeserialize(reader);
 }
Example #3
0
 public void OnDeserialize(BinaryReader reader)
 {
     statusMax = reader.ReadInt32();
     statusText.OnDeserialize(reader);
     statusTextFlags = reader.ReadByte();
 }