コード例 #1
0
 public override void Deserialize(BigEndianReader reader)
 {
     type = reader.ReadSByte();
     if (type < 0)
         throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
     coords = Types.ProtocolTypeManager.GetInstance<Types.MapCoordinates>(reader.ReadShort());
     coords.Deserialize(reader);
 }
コード例 #2
0
 public override void Deserialize(BigEndianReader reader)
 {
     type = reader.ReadSByte();
     if (type < 0)
     {
         throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
     }
     coords = Types.ProtocolTypeManager.GetInstance <Types.MapCoordinates>(reader.ReadShort());
     coords.Deserialize(reader);
 }
コード例 #3
0
 public override void Deserialize(IReader reader)
 {
     type   = reader.ReadSByte();
     coords = ProtocolTypeManager.GetInstance <Types.MapCoordinates>(reader.ReadUShort());
     coords.Deserialize(reader);
 }