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);
 }
 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);
 }
 public override void Deserialize(IReader reader)
 {
     type   = reader.ReadSByte();
     coords = ProtocolTypeManager.GetInstance <Types.MapCoordinates>(reader.ReadUShort());
     coords.Deserialize(reader);
 }