Exemplo n.º 1
0
 public override void Deserialize(IDataReader reader)
 {
     subAreaId = reader.ReadVarUhShort();
     fightId   = reader.ReadVarUhShort();
     defender  = ProtocolTypeManager.GetInstance <Types.CharacterMinimalPlusLookInformations>(reader.ReadUShort());
     defender.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     playerInfo = new Types.CharacterMinimalPlusLookInformations();
     playerInfo.Deserialize(reader);
 }
Exemplo n.º 3
0
 public override void Deserialize(IDataReader reader)
 {
     fightId = reader.ReadDouble();
     if (fightId < 0)
     {
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     }
     playerInfo = new Types.CharacterMinimalPlusLookInformations();
     playerInfo.Deserialize(reader);
 }
 public override void Deserialize(BigEndianReader reader)
 {
     subAreaId = reader.ReadVarShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     fightId = reader.ReadVarShort();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     defender = Types.ProtocolTypeManager.GetInstance<Types.CharacterMinimalPlusLookInformations>(reader.ReadShort());
     defender.Deserialize(reader);
 }
Exemplo n.º 5
0
 public override void Deserialize(BigEndianReader reader)
 {
     subAreaId = reader.ReadShort();
     if (subAreaId < 0)
     {
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     }
     fightId  = reader.ReadDouble();
     attacker = Types.ProtocolTypeManager.GetInstance <Types.CharacterMinimalPlusLookInformations>(reader.ReadShort());
     attacker.Deserialize(reader);
 }
Exemplo n.º 6
0
 public void Deserialize(IDataReader reader)
 {
     subAreaId = reader.ReadVarUhShort();
     if (subAreaId < 0)
     {
         throw new System.Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     }
     fightId = reader.ReadVarUhShort();
     if (fightId < 0)
     {
         throw new System.Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     }
     defender = ProtocolTypeManager.GetInstance <Types.CharacterMinimalPlusLookInformations>(reader.ReadShort());
     defender.Deserialize(reader);
 }
 public override void Deserialize(IReader reader)
 {
     fightId = reader.ReadInt();
     playerInfo = new Types.CharacterMinimalPlusLookInformations();
     playerInfo.Deserialize(reader);
 }