public PrismFightDefenderAddMessage(ushort subAreaId, ushort fightId,
                                     CharacterMinimalPlusLookInformations defender)
 {
     SubAreaId = subAreaId;
     FightId   = fightId;
     Defender  = defender;
 }
 public void Deserialize(IDataReader reader)
 {
     SubAreaId = (UInt16)reader.ReadVarShort();
     FightId   = (UInt16)reader.ReadVarShort();
     Attacker  = new CharacterMinimalPlusLookInformations();
     Attacker.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     SubAreaId = reader.ReadVarUhShort();
     FightId   = reader.ReadVarUhShort();
     Defender  = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadUShort());
     Defender.Deserialize(reader);
 }
Esempio n. 4
0
 public GuildFightPlayersHelpersJoinMessage(
     double fightId,
     CharacterMinimalPlusLookInformations playerInfo
     )
 {
     FightId    = fightId;
     PlayerInfo = playerInfo;
 }
Esempio n. 5
0
 public PrismFightDefenderAddMessage(
     uint subAreaId,
     uint fightId,
     CharacterMinimalPlusLookInformations defender)
 {
     this.subAreaId = subAreaId;
     this.fightId   = fightId;
     this.defender  = defender;
 }
Esempio n. 6
0
 public PrismFightAttackerAddMessage(
     uint subAreaId,
     uint fightId,
     CharacterMinimalPlusLookInformations attacker)
 {
     this.subAreaId = subAreaId;
     this.fightId   = fightId;
     this.attacker  = attacker;
 }
Esempio n. 7
0
        public override void Deserialize(ICustomDataInput reader)
        {
            SubAreaId = reader.ReadVarShort();
            FightId   = reader.ReadVarShort();
            var attackerTypeId = reader.ReadShort();

            Attacker = new CharacterMinimalPlusLookInformations();
            Attacker.Deserialize(reader);
        }
Esempio n. 8
0
 public void Deserialize(IDataReader reader)
 {
     FightId    = reader.ReadDouble();
     PlayerInfo = new CharacterMinimalPlusLookInformations[reader.ReadShort()];
     for (var i = 0; i < PlayerInfo.Length; i++)
     {
         (PlayerInfo[i] = new CharacterMinimalPlusLookInformations()).Deserialize(reader);
     }
 }
Esempio n. 9
0
 public PrismFightAttackerAddMessage(
     short subAreaId,
     short fightId,
     CharacterMinimalPlusLookInformations attacker
     )
 {
     SubAreaId = subAreaId;
     FightId   = fightId;
     Attacker  = attacker;
 }
 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 GuildFightPlayersHelpersJoinMessage.fightId.");
     }
     this.playerInfo = new CharacterMinimalPlusLookInformations();
     this.playerInfo.Deserialize(reader);
 }
Esempio n. 11
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);
 }
Esempio n. 12
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.fightId = reader.ReadInt();

            if (this.fightId < 0)
            {
                throw new Exception("Forbidden value on fightId = " + this.fightId + ", it doesn't respect the following condition : fightId < 0");
            }
            this.playerInfo = new CharacterMinimalPlusLookInformations();
            this.playerInfo.Deserialize(reader);
        }
        public override void Serialize(IDataWriter writer)
        {
            writer.WriteShort(((short)(m_playerInfo.Count)));
            int playerInfoIndex;

            for (playerInfoIndex = 0; (playerInfoIndex < m_playerInfo.Count); playerInfoIndex = (playerInfoIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToSend = m_playerInfo[playerInfoIndex];
                objectToSend.Serialize(writer);
            }
            writer.WriteInt(m_fightId);
        }
        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);
            }
        }
        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);
            }
        }
Esempio n. 16
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();
        }
Esempio n. 18
0
 public override void Deserialize(IDataReader reader)
 {
     this.subAreaId = (uint)reader.ReadVarUhShort();
     if (this.subAreaId < 0U)
     {
         throw new Exception("Forbidden value (" + (object)this.subAreaId + ") on element of PrismFightDefenderAddMessage.subAreaId.");
     }
     this.fightId = (uint)reader.ReadVarUhShort();
     if (this.fightId < 0U)
     {
         throw new Exception("Forbidden value (" + (object)this.fightId + ") on element of PrismFightDefenderAddMessage.fightId.");
     }
     this.defender = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>((uint)reader.ReadUShort());
     this.defender.Deserialize(reader);
 }
Esempio n. 19
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);
 }
Esempio n. 20
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);
            }
        }
Esempio n. 21
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");
            }
            var limit = reader.ReadUShort();

            playerInfo = new CharacterMinimalPlusLookInformations[limit];
            for (int i = 0; i < limit; i++)
            {
                playerInfo[i] = new CharacterMinimalPlusLookInformations();
                playerInfo[i].Deserialize(reader);
            }
        }
Esempio n. 22
0
        public override void Deserialize(ICustomDataInput reader)
        {
            this.subAreaId = reader.ReadVarUhShort();

            if (this.subAreaId < 0)
            {
                throw new Exception("Forbidden value on subAreaId = " + this.subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
            }
            this.fightId = reader.ReadVarUhShort();

            if (this.fightId < 0)
            {
                throw new Exception("Forbidden value on fightId = " + this.fightId + ", it doesn't respect the following condition : fightId < 0");
            }
            this.defender = ProtocolTypeManager.GetInstance <CharacterMinimalPlusLookInformations>(reader.ReadShort());
            this.defender.Deserialize(reader);
        }
Esempio n. 23
0
        public override void Serialize(ICustomDataOutput writer)
        {
            writer.WriteShort(((short)(m_allyCharactersInformations.Count)));
            int allyCharactersInformationsIndex;

            for (allyCharactersInformationsIndex = 0; (allyCharactersInformationsIndex < m_allyCharactersInformations.Count); allyCharactersInformationsIndex = (allyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToSend = m_allyCharactersInformations[allyCharactersInformationsIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(((short)(m_enemyCharactersInformations.Count)));
            int enemyCharactersInformationsIndex;

            for (enemyCharactersInformationsIndex = 0; (enemyCharactersInformationsIndex < m_enemyCharactersInformations.Count); enemyCharactersInformationsIndex = (enemyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToSend = m_enemyCharactersInformations[enemyCharactersInformationsIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteInt(m_collectorId);
        }
Esempio n. 24
0
        public override void Serialize(IDataWriter writer)
        {
            m_waitingForHelpInfo.Serialize(writer);
            writer.WriteShort(((short)(m_allyCharactersInformations.Count)));
            int allyCharactersInformationsIndex;

            for (allyCharactersInformationsIndex = 0; (allyCharactersInformationsIndex < m_allyCharactersInformations.Count); allyCharactersInformationsIndex = (allyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToSend = m_allyCharactersInformations[allyCharactersInformationsIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteShort(((short)(m_enemyCharactersInformations.Count)));
            int enemyCharactersInformationsIndex;

            for (enemyCharactersInformationsIndex = 0; (enemyCharactersInformationsIndex < m_enemyCharactersInformations.Count); enemyCharactersInformationsIndex = (enemyCharactersInformationsIndex + 1))
            {
                CharacterMinimalPlusLookInformations objectToSend = m_enemyCharactersInformations[enemyCharactersInformationsIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
            writer.WriteVarUhShort(m_subAreaId);
        }
Esempio n. 25
0
        public override void Deserialize(ICustomDataInput 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_collectorId = reader.ReadInt();
        }
 public void Deserialize(IDataReader reader)
 {
     FightId    = reader.ReadDouble();
     PlayerInfo = new CharacterMinimalPlusLookInformations();
     PlayerInfo.Deserialize(reader);
 }
Esempio n. 27
0
 public PrismFightAttackerAddMessage(CharacterMinimalPlusLookInformations attacker, ushort subAreaId, ushort fightId)
 {
     m_attacker  = attacker;
     m_subAreaId = subAreaId;
     m_fightId   = fightId;
 }
Esempio n. 28
0
 public override void Deserialize(ICustomDataInput reader)
 {
     FightId    = reader.ReadDouble();
     PlayerInfo = new CharacterMinimalPlusLookInformations();
     PlayerInfo.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     this.fightId    = reader.ReadInt();
     this.playerInfo = new CharacterMinimalPlusLookInformations();
     this.playerInfo.Deserialize(reader);
 }
 public GuildFightPlayersHelpersJoinMessage(int fightId, CharacterMinimalPlusLookInformations playerInfo)
 {
     this.fightId    = fightId;
     this.playerInfo = playerInfo;
 }