Exemplo n.º 1
0
        // Token: 0x06004E9C RID: 20124 RVA: 0x0017D3E8 File Offset: 0x0017B5E8
        public static ProcessingBattle PbBattleProcessingToBattleProcessing(ProBattleProcessing pbBattleInfo)
        {
            ProcessingBattle processingBattle = new ProcessingBattle
            {
                Type           = (BattleType)pbBattleInfo.Type,
                TypeId         = pbBattleInfo.TypeId,
                RandomSeed     = pbBattleInfo.RandomSeed,
                ArmyRandomSeed = pbBattleInfo.ArmyRandomSeed
            };

            processingBattle.Params.AddRange(pbBattleInfo.Params);
            return(processingBattle);
        }
Exemplo n.º 2
0
        // Token: 0x06004E9B RID: 20123 RVA: 0x0017D390 File Offset: 0x0017B590
        public static ProBattleProcessing BattleProcessingToPbBattleProcessing(ProcessingBattle battleInfo)
        {
            ProBattleProcessing proBattleProcessing = new ProBattleProcessing
            {
                Type           = (int)battleInfo.Type,
                TypeId         = battleInfo.TypeId,
                RandomSeed     = battleInfo.RandomSeed,
                ArmyRandomSeed = battleInfo.ArmyRandomSeed
            };

            proBattleProcessing.Params.AddRange(battleInfo.Params);
            return(proBattleProcessing);
        }
Exemplo n.º 3
0
        // Token: 0x06004A80 RID: 19072 RVA: 0x001744F0 File Offset: 0x001726F0
        public override object SerializeToClient()
        {
            DSBattleNtf dsbattleNtf = new DSBattleNtf();

            dsbattleNtf.Version = (uint)base.Version;
            foreach (KeyValuePair <int, List <int> > keyValuePair in this.Teams)
            {
                ProTeam proTeam = new ProTeam();
                proTeam.BattleType = Convert.ToInt32(keyValuePair.Key);
                proTeam.Heroes.AddRange(keyValuePair.Value);
                dsbattleNtf.Teams.Add(proTeam);
            }
            dsbattleNtf.ProcessingBattleInfo = ProcessingBattle.BattleProcessingToPbBattleProcessing(this.ProcessingBattleInfo);
            dsbattleNtf.GotBattleTreasureIds.AddRange(this.GotBattleTreasureIds);
            dsbattleNtf.ArenaBattleStatus     = (int)this.ArenaBattleStatus;
            dsbattleNtf.ArenaBattleId         = this.ArenaBattleId;
            dsbattleNtf.ArenaBattleRandomSeed = this.ArenaBattleRandomSeed;
            dsbattleNtf.BattleRoomId          = this.BattleRoomId;
            return(dsbattleNtf);
        }
Exemplo n.º 4
0
 // Token: 0x06004A81 RID: 19073 RVA: 0x001745E0 File Offset: 0x001727E0
 public void InitProcessingBattle(ProcessingBattle info)
 {
     this.ProcessingBattleInfo = info;
 }
		// Token: 0x06004E9D RID: 20125 RVA: 0x0017D440 File Offset: 0x0017B640
		public ClimberTowerProcessingBattleParamInterface(ProcessingBattle processingBattle)
		{
			this.processingBattle = processingBattle;
			this.CheckInit();
		}