Exemplo n.º 1
0
        public override void Deserialize(ICustomDataReader reader)
        {
            int AlliancesLen = reader.ReadShort();

            Alliances = new AllianceInformations[AlliancesLen];
            for (int i = 0; i < AlliancesLen; i++)
            {
                this.Alliances[i] = new AllianceInformations();
                this.Alliances[i].Deserialize(reader);
            }
            int AllianceNbMembersLen = reader.ReadShort();

            AllianceNbMembers = new short[AllianceNbMembersLen];
            for (int i = 0; i < AllianceNbMembersLen; i++)
            {
                this.AllianceNbMembers[i] = reader.ReadVarShort();
            }
            int AllianceRoundWeigthLen = reader.ReadShort();

            AllianceRoundWeigth = new int[AllianceRoundWeigthLen];
            for (int i = 0; i < AllianceRoundWeigthLen; i++)
            {
                this.AllianceRoundWeigth[i] = reader.ReadVarInt();
            }
            int AllianceMatchScoreLen = reader.ReadShort();

            AllianceMatchScore = new byte[AllianceMatchScoreLen];
            for (int i = 0; i < AllianceMatchScoreLen; i++)
            {
                this.AllianceMatchScore[i] = reader.ReadByte();
            }
            int AllianceMapWinnersLen = reader.ReadShort();

            AllianceMapWinners = new BasicAllianceInformations[AllianceMapWinnersLen];
            for (int i = 0; i < AllianceMapWinnersLen; i++)
            {
                this.AllianceMapWinners[i] = new BasicAllianceInformations();
                this.AllianceMapWinners[i].Deserialize(reader);
            }
            this.AllianceMapWinnerScore     = reader.ReadVarInt();
            this.AllianceMapMyAllianceScore = reader.ReadVarInt();
            this.NextTickTime = reader.ReadDouble();
        }
 public override void Deserialize(ICustomDataReader reader)
 {
     base.Deserialize(reader);
     this.AllianceInfos = new BasicAllianceInformations();
     this.AllianceInfos.Deserialize(reader);
 }
 public FightTeamMemberWithAllianceCharacterInformations InitFightTeamMemberWithAllianceCharacterInformations(BasicAllianceInformations AllianceInfos)
 {
     this.AllianceInfos = AllianceInfos;
     return(this);
 }
 public CharacterMinimalAllianceInformations InitCharacterMinimalAllianceInformations(BasicAllianceInformations Alliance)
 {
     this.Alliance = Alliance;
     return(this);
 }