Exemplo n.º 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);
 }
 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 CompassUpdatePartyMemberMessage(sbyte type, Types.MapCoordinates coords, uint memberId)
     : base(type, coords)
 {
     this.memberId = memberId;
 }
Exemplo n.º 4
0
 public CompassUpdatePvpSeekMessage(sbyte type, Types.MapCoordinates coords, double memberId, string memberName)
     : base(type, coords)
 {
     this.memberId   = memberId;
     this.memberName = memberName;
 }
Exemplo n.º 5
0
 public CompassUpdatePartyMemberMessage(sbyte type, Types.MapCoordinates coords, long memberId, bool active)
     : base(type, coords)
 {
     this.memberId = memberId;
     this.active   = active;
 }
 public CompassUpdateMessage(sbyte type, Types.MapCoordinates coords)
 {
     this.type   = type;
     this.coords = coords;
 }
Exemplo n.º 7
0
 public override void Deserialize(IReader reader)
 {
     type   = reader.ReadSByte();
     coords = ProtocolTypeManager.GetInstance <Types.MapCoordinates>(reader.ReadUShort());
     coords.Deserialize(reader);
 }
Exemplo n.º 8
0
 public CompassUpdateMessage(sbyte type, Types.MapCoordinates coords)
 {
     this.type = type;
     this.coords = coords;
 }