Пример #1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            m_waitingForHelpInfo = new ProtectedEntityWaitingForHelpInfo();
            m_waitingForHelpInfo.Deserialize(reader);
            int allyCharactersInformationsCount = reader.ReadUShort();
            int allyCharactersInformationsIndex;

            m_allyCharactersInformations = new System.Collections.Generic.List <CharacterMinimalPlusLookInformations>();
            for (allyCharactersInformationsIndex = 0; (allyCharactersInformationsIndex < allyCharactersInformationsCount); allyCharactersInformationsIndex = (allyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToAdd = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_allyCharactersInformations.Add(objectToAdd);
            }
            int enemyCharactersInformationsCount = reader.ReadUShort();
            int enemyCharactersInformationsIndex;

            m_enemyCharactersInformations = new System.Collections.Generic.List <CharacterMinimalPlusLookInformations>();
            for (enemyCharactersInformationsIndex = 0; (enemyCharactersInformationsIndex < enemyCharactersInformationsCount); enemyCharactersInformationsIndex = (enemyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToAdd = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>((short)reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_enemyCharactersInformations.Add(objectToAdd);
            }
            m_subAreaId = reader.ReadVarUhShort();
        }
 public void Deserialize(IDataReader reader)
 {
     SubAreaId = (UInt16)reader.ReadVarShort();
     FightId   = (UInt16)reader.ReadVarShort();
     Defender  = new CharacterMinimalPlusLookInformations();
     Defender.Deserialize(reader);
 }
Пример #3
0
 public override void Deserialize(ICustomDataInput reader)
 {
     m_attacker = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>((short)reader.ReadUShort());
     m_attacker.Deserialize(reader);
     m_subAreaId = reader.ReadVarUhShort();
     m_fightId   = reader.ReadVarUhShort();
 }
Пример #4
0
 public override void Deserialize(IDataReader reader)
 {
     m_defender = ProtocolManager.GetTypeInstance <CharacterMinimalPlusLookInformations>(reader.ReadUShort());
     m_defender.Deserialize(reader);
     m_subAreaId = reader.ReadVarUhShort();
     m_fightId   = reader.ReadVarUhShort();
 }
 public override void Deserialize(IDataReader reader)
 {
     SubAreaId = reader.ReadVarUhShort();
     FightId   = reader.ReadVarUhShort();
     Attacker  = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadUShort());
     Attacker.Deserialize(reader);
 }
Пример #6
0
 public override void Deserialize(IDataReader reader)
 {
     SubAreaId = reader.ReadVarUhShort();
     FightId   = reader.ReadVarUhShort();
     Attacker  = ProtocolTypeManager.GetInstance(reader.ReadUShort());
     Attacker.Deserialize(reader);
 }
Пример #7
0
        public override void Deserialize(ICustomDataInput reader)
        {
            SubAreaId = reader.ReadVarShort();
            FightId   = reader.ReadVarShort();
            var attackerTypeId = reader.ReadShort();

            Attacker = new CharacterMinimalPlusLookInformations();
            Attacker.Deserialize(reader);
        }
Пример #8
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 CharacterMinimalPlusLookInformations();
     playerInfo.Deserialize(reader);
 }
        public override void Deserialize(IDataReader reader)
        {
            FightId = reader.ReadInt();
            var playerInfoCount = reader.ReadUShort();

            PlayerInfo = new List <CharacterMinimalPlusLookInformations>();
            for (var playerInfoIndex = 0; playerInfoIndex < playerInfoCount; playerInfoIndex++)
            {
                var objectToAdd = new CharacterMinimalPlusLookInformations();
                objectToAdd.Deserialize(reader);
                PlayerInfo.Add(objectToAdd);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            FightId = reader.ReadDouble();
            var PlayerInfoCount = reader.ReadShort();

            PlayerInfo = new List <CharacterMinimalPlusLookInformations>();
            for (var i = 0; i < PlayerInfoCount; i++)
            {
                var objectToAdd = new CharacterMinimalPlusLookInformations();
                objectToAdd.Deserialize(reader);
                PlayerInfo.Add(objectToAdd);
            }
        }
Пример #11
0
        public override void Deserialize(ICustomDataInput reader)
        {
            FightId = reader.ReadDouble();
            var countPlayerInfo = reader.ReadShort();

            PlayerInfo = new List <CharacterMinimalPlusLookInformations>();
            for (short i = 0; i < countPlayerInfo; i++)
            {
                CharacterMinimalPlusLookInformations type = new CharacterMinimalPlusLookInformations();
                type.Deserialize(reader);
                PlayerInfo.Add(type);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            int playerInfoCount = reader.ReadUShort();
            int playerInfoIndex;

            m_playerInfo = new System.Collections.Generic.List <CharacterMinimalPlusLookInformations>();
            for (playerInfoIndex = 0; (playerInfoIndex < playerInfoCount); playerInfoIndex = (playerInfoIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToAdd = new CharacterMinimalPlusLookInformations();
                objectToAdd.Deserialize(reader);
                m_playerInfo.Add(objectToAdd);
            }
            m_fightId = reader.ReadInt();
        }
Пример #13
0
 public override void Deserialize(IDataReader 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 <CharacterMinimalPlusLookInformations>(reader.ReadShort());
     defender.Deserialize(reader);
 }
Пример #14
0
        public override void Deserialize(IDataReader reader)
        {
            this.fightId = reader.ReadDouble();
            if (this.fightId < 0.0 || this.fightId > 9.00719925474099E+15)
            {
                throw new Exception("Forbidden value (" + (object)this.fightId + ") on element of GuildFightPlayersEnemiesListMessage.fightId.");
            }
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                CharacterMinimalPlusLookInformations lookInformations = new CharacterMinimalPlusLookInformations();
                lookInformations.Deserialize(reader);
                this.playerInfo.Add(lookInformations);
            }
        }
Пример #15
0
        public override void Deserialize(IDataReader reader)
        {
            int allyCharactersInformationsCount = reader.ReadUShort();
            int allyCharactersInformationsIndex;

            m_allyCharactersInformations = new System.Collections.Generic.List <CharacterMinimalPlusLookInformations>();
            for (allyCharactersInformationsIndex = 0; (allyCharactersInformationsIndex < allyCharactersInformationsCount); allyCharactersInformationsIndex = (allyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToAdd = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_allyCharactersInformations.Add(objectToAdd);
            }
            int enemyCharactersInformationsCount = reader.ReadUShort();
            int enemyCharactersInformationsIndex;

            m_enemyCharactersInformations = new System.Collections.Generic.List <CharacterMinimalPlusLookInformations>();
            for (enemyCharactersInformationsIndex = 0; (enemyCharactersInformationsIndex < enemyCharactersInformationsCount); enemyCharactersInformationsIndex = (enemyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToAdd = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                m_enemyCharactersInformations.Add(objectToAdd);
            }
            m_collectorId = reader.ReadInt();
        }
Пример #16
0
 public override void Deserialize(ICustomDataInput reader)
 {
     FightId    = reader.ReadDouble();
     PlayerInfo = new CharacterMinimalPlusLookInformations();
     PlayerInfo.Deserialize(reader);
 }
Пример #17
0
 public override void Deserialize(IDataReader reader)
 {
     m_playerInfo = new CharacterMinimalPlusLookInformations();
     m_playerInfo.Deserialize(reader);
     m_fightId = reader.ReadInt();
 }
 public void Deserialize(IDataReader reader)
 {
     FightId    = reader.ReadDouble();
     PlayerInfo = new CharacterMinimalPlusLookInformations();
     PlayerInfo.Deserialize(reader);
 }