// Token: 0x06004DC2 RID: 19906 RVA: 0x0017B3F4 File Offset: 0x001795F4
        public static ArenaPlayerDefensiveTeam PBArenaDefensiveTeamToArenaDefensiveTeam(ProArenaPlayerDefensiveTeam pbDefensiveTeam)
        {
            ArenaPlayerDefensiveTeam arenaPlayerDefensiveTeam = new ArenaPlayerDefensiveTeam();

            arenaPlayerDefensiveTeam.BattleId            = (byte)pbDefensiveTeam.BattleId;
            arenaPlayerDefensiveTeam.ArenaDefenderRuleId = (byte)pbDefensiveTeam.ArenaDefenderRuleId;
            foreach (ProArenaPlayerDefensiveHero pbDefensiveHero in pbDefensiveTeam.DefenderHeroes)
            {
                arenaPlayerDefensiveTeam.Heroes.Add(ArenaPlayerDefensiveHero.PBArenaDefensiveHeroToArenaDefensiveHero(pbDefensiveHero));
            }
            return(arenaPlayerDefensiveTeam);
        }
Beispiel #2
0
        // Token: 0x06004DBB RID: 19899 RVA: 0x0017B178 File Offset: 0x00179378
        public static ArenaPlayerInfo PBArenaPlayerInfoToArenaPlayerInfo(ProArenaPlayerInfo pbArenaPlayerInfo)
        {
            ArenaPlayerInfo arenaPlayerInfo = new ArenaPlayerInfo();

            arenaPlayerInfo.DefensiveTeam = ArenaPlayerDefensiveTeam.PBArenaDefensiveTeamToArenaDefensiveTeam(pbArenaPlayerInfo.DefensiveTeam);
            foreach (ProArenaOpponent pbArenaOpponent in pbArenaPlayerInfo.Opponents)
            {
                arenaPlayerInfo.Opponents.Add(ArenaOpponent.PBArenaOpponentToArenaOpponent(pbArenaOpponent));
            }
            arenaPlayerInfo.IsAutoBattle      = pbArenaPlayerInfo.IsAutoBattle;
            arenaPlayerInfo.ArenaLevelId      = pbArenaPlayerInfo.ArenaLevelId;
            arenaPlayerInfo.ArenaPoints       = (ushort)pbArenaPlayerInfo.ArenaPoints;
            arenaPlayerInfo.AttackedOpponent  = pbArenaPlayerInfo.AttackedOpponent;
            arenaPlayerInfo.VictoryPoints     = pbArenaPlayerInfo.VictoryPoints;
            arenaPlayerInfo.WeekLastFlushTime = new DateTime(pbArenaPlayerInfo.WeekLastFlushTime);
            arenaPlayerInfo.ReceivedVictoryPointsRewardIndexs.AddRange(pbArenaPlayerInfo.ReceivedVictoryPointsRewardIndexs);
            arenaPlayerInfo.ThisWeekBattleIds.AddRange(pbArenaPlayerInfo.ThisWeekBattleIds);
            arenaPlayerInfo.ConsecutiveVictoryNums  = pbArenaPlayerInfo.ConsecutiveVictoryNums;
            arenaPlayerInfo.ThisWeekTotalBattleNums = pbArenaPlayerInfo.ThisWeekTotalBattleNums;
            arenaPlayerInfo.ThisWeekVictoryNums     = pbArenaPlayerInfo.ThisWeekVictoryNums;
            arenaPlayerInfo.NextFlushOpponentTime   = pbArenaPlayerInfo.NextFlushOpponentTime;
            return(arenaPlayerInfo);
        }
Beispiel #3
0
        // Token: 0x06004DBC RID: 19900 RVA: 0x0017B298 File Offset: 0x00179498
        public static ProArenaPlayerInfo ArenaPlayerInfoToPBArenaPlayerInfo(ArenaPlayerInfo arenaPlayerInfo)
        {
            ProArenaPlayerInfo proArenaPlayerInfo = new ProArenaPlayerInfo();

            proArenaPlayerInfo.DefensiveTeam = ArenaPlayerDefensiveTeam.ArenaDefensiveTeamToPBArenaDefensiveTeam(arenaPlayerInfo.DefensiveTeam);
            foreach (ArenaOpponent arenaOpponent in arenaPlayerInfo.Opponents)
            {
                proArenaPlayerInfo.Opponents.Add(ArenaOpponent.ArenaOpponentToPBArenaOpponent(arenaOpponent));
            }
            proArenaPlayerInfo.IsAutoBattle      = arenaPlayerInfo.IsAutoBattle;
            proArenaPlayerInfo.ArenaLevelId      = arenaPlayerInfo.ArenaLevelId;
            proArenaPlayerInfo.ArenaPoints       = (int)arenaPlayerInfo.ArenaPoints;
            proArenaPlayerInfo.AttackedOpponent  = arenaPlayerInfo.AttackedOpponent;
            proArenaPlayerInfo.VictoryPoints     = arenaPlayerInfo.VictoryPoints;
            proArenaPlayerInfo.WeekLastFlushTime = arenaPlayerInfo.WeekLastFlushTime.Ticks;
            proArenaPlayerInfo.ReceivedVictoryPointsRewardIndexs.AddRange(arenaPlayerInfo.ReceivedVictoryPointsRewardIndexs);
            proArenaPlayerInfo.ThisWeekBattleIds.AddRange(arenaPlayerInfo.ThisWeekBattleIds);
            proArenaPlayerInfo.ConsecutiveVictoryNums  = arenaPlayerInfo.ConsecutiveVictoryNums;
            proArenaPlayerInfo.ThisWeekTotalBattleNums = arenaPlayerInfo.ThisWeekTotalBattleNums;
            proArenaPlayerInfo.ThisWeekVictoryNums     = arenaPlayerInfo.ThisWeekVictoryNums;
            proArenaPlayerInfo.NextFlushOpponentTime   = arenaPlayerInfo.NextFlushOpponentTime;
            return(proArenaPlayerInfo);
        }
        // Token: 0x06004DC3 RID: 19907 RVA: 0x0017B47C File Offset: 0x0017967C
        public static ProArenaPlayerDefensiveTeam ArenaDefensiveTeamToPBArenaDefensiveTeam(ArenaPlayerDefensiveTeam defensiveTeam)
        {
            ProArenaPlayerDefensiveTeam proArenaPlayerDefensiveTeam = new ProArenaPlayerDefensiveTeam();

            proArenaPlayerDefensiveTeam.BattleId            = (int)defensiveTeam.BattleId;
            proArenaPlayerDefensiveTeam.ArenaDefenderRuleId = (int)defensiveTeam.ArenaDefenderRuleId;
            foreach (ArenaPlayerDefensiveHero defensiveHero in defensiveTeam.Heroes)
            {
                proArenaPlayerDefensiveTeam.DefenderHeroes.Add(ArenaPlayerDefensiveHero.ArenaDefensiveHeroToPBDfensiveHero(defensiveHero));
            }
            return(proArenaPlayerDefensiveTeam);
        }
Beispiel #5
0
 // Token: 0x06004A37 RID: 18999 RVA: 0x00173B34 File Offset: 0x00171D34
 public void SetDefensiveTeam(ArenaPlayerDefensiveTeam team)
 {
     this.ArenaPlayerInfo.DefensiveTeam = team;
     base.SetDirty(true);
 }