Пример #1
0
        // Token: 0x06003BF9 RID: 15353 RVA: 0x00110C9C File Offset: 0x0010EE9C
        public static GuildMassiveCombatInfo ToMemory(this ProGuildMassiveCombatInfo CombatInfo)
        {
            if (CombatInfo == null)
            {
                return(null);
            }
            GuildMassiveCombatInfo guildMassiveCombatInfo = new GuildMassiveCombatInfo
            {
                CreateTime = new DateTime(CombatInfo.CreateTime),
                Difficulty = CombatInfo.Difficulty,
                InstanceId = CombatInfo.InstanceId,
                FinishTime = new DateTime(CombatInfo.FinishTime)
            };

            foreach (ProGuildMassiveCombatMemberInfo memberInfo in CombatInfo.Members)
            {
                guildMassiveCombatInfo.Members.Add(memberInfo.ToMemory());
            }
            foreach (ProGuildMassiveCombatStrongholdInfo stronghold in CombatInfo.Strongholds)
            {
                GuildMassiveCombatStronghold item = stronghold.ToMemory();
                guildMassiveCombatInfo.Strongholds.Add(item);
            }
            return(guildMassiveCombatInfo);
        }
Пример #2
0
        // Token: 0x06003BF4 RID: 15348 RVA: 0x00110A24 File Offset: 0x0010EC24
        public static ProGuildMassiveCombatStrongholdInfo ToPro(this GuildMassiveCombatStronghold Stronghold)
        {
            if (Stronghold == null)
            {
                return(null);
            }
            ProGuildMassiveCombatStrongholdInfo proGuildMassiveCombatStrongholdInfo = new ProGuildMassiveCombatStrongholdInfo
            {
                ConfigId        = Stronghold.ConfigId,
                EnemyEliminated = Stronghold.EnemyEliminated,
                LevelId         = Stronghold.LevelId,
                TakenOverTime   = Stronghold.TakenOverTime.Ticks,
                RandomSeed      = Stronghold.RandomSeed
            };

            proGuildMassiveCombatStrongholdInfo.PreferredHeroTagIds.AddRange(Stronghold.PreferredHeroTagIds);
            return(proGuildMassiveCombatStrongholdInfo);
        }
Пример #3
0
        // Token: 0x06003BF5 RID: 15349 RVA: 0x00110A94 File Offset: 0x0010EC94
        public static GuildMassiveCombatStronghold ToMemory(this ProGuildMassiveCombatStrongholdInfo Stronghold)
        {
            if (Stronghold == null)
            {
                return(null);
            }
            GuildMassiveCombatStronghold guildMassiveCombatStronghold = new GuildMassiveCombatStronghold
            {
                ConfigId        = Stronghold.ConfigId,
                EnemyEliminated = Stronghold.EnemyEliminated,
                LevelId         = Stronghold.LevelId,
                TakenOverTime   = new DateTime(Stronghold.TakenOverTime),
                RandomSeed      = Stronghold.RandomSeed
            };

            guildMassiveCombatStronghold.PreferredHeroTagIds.AddRange(Stronghold.PreferredHeroTagIds);
            return(guildMassiveCombatStronghold);
        }