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); }
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); }
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); }
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); }