public static TrophyParam[] GetRootTropies()
        {
            ChallengeCategoryParam[] challengeCategories = MonoSingleton <GameManager> .Instance.MasterParam.ChallengeCategories;
            List <TrophyParam>       trophyParamList     = new List <TrophyParam>();

            TrophyParam[] tropies = ChallengeMission.GetTropies();
            foreach (TrophyParam trophyParam in tropies)
            {
                TrophyParam trophy = trophyParam;
                if (trophy.IsChallengeMissionRoot)
                {
                    ChallengeCategoryParam challengeCategoryParam = ((IEnumerable <ChallengeCategoryParam>)challengeCategories).FirstOrDefault <ChallengeCategoryParam>((Func <ChallengeCategoryParam, bool>)(cat => cat.iname == trophy.Category));
                    if (challengeCategoryParam != null)
                    {
                        if (challengeCategoryParam.begin_at == null || challengeCategoryParam.end_at == null)
                        {
                            trophyParamList.Add(trophy);
                        }
                        else
                        {
                            DateTime serverTime = TimeManager.ServerTime;
                            if (serverTime >= challengeCategoryParam.begin_at.DateTimes && serverTime <= challengeCategoryParam.end_at.DateTimes)
                            {
                                trophyParamList.Add(trophy);
                            }
                        }
                    }
                }
            }
            return(trophyParamList.ToArray());
        }
        public static TrophyParam[] GetCurrentTrophies(TrophyParam root)
        {
            List <TrophyParam> trophyParamList = new List <TrophyParam>();

            foreach (TrophyParam tropy in ChallengeMission.GetTropies())
            {
                if (tropy.IsChallengeMission && root.iname == tropy.ParentTrophy)
                {
                    trophyParamList.Add(tropy);
                }
            }
            return(trophyParamList.ToArray());
        }
        public static TrophyParam[] GetRootTropies()
        {
            List <TrophyParam> trophyParamList = new List <TrophyParam>();

            foreach (TrophyParam tropy in ChallengeMission.GetTropies())
            {
                if (tropy.IsChallengeMissionRoot)
                {
                    trophyParamList.Add(tropy);
                }
            }
            return(trophyParamList.ToArray());
        }
        public static TrophyParam[] GetRootTropies()
        {
            ChallengeCategoryParam[] challengeCategories = MonoSingleton <GameManager> .Instance.MasterParam.ChallengeCategories;
            List <TrophyParam>       trophyParamList     = new List <TrophyParam>();

            TrophyParam[] tropies = ChallengeMission.GetTropies();
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            ChallengeMission.\u003CGetRootTropies\u003Ec__AnonStorey30E tropiesCAnonStorey30E = new ChallengeMission.\u003CGetRootTropies\u003Ec__AnonStorey30E();
            foreach (TrophyParam trophyParam in tropies)
            {
                // ISSUE: reference to a compiler-generated field
                tropiesCAnonStorey30E.trophy = trophyParam;
                // ISSUE: reference to a compiler-generated field
                if (tropiesCAnonStorey30E.trophy.IsChallengeMissionRoot)
                {
                    // ISSUE: reference to a compiler-generated method
                    ChallengeCategoryParam challengeCategoryParam = ((IEnumerable <ChallengeCategoryParam>)challengeCategories).FirstOrDefault <ChallengeCategoryParam>(new Func <ChallengeCategoryParam, bool>(tropiesCAnonStorey30E.\u003C\u003Em__31E));
                    if (challengeCategoryParam != null)
                    {
                        if (challengeCategoryParam.begin_at == null || challengeCategoryParam.end_at == null)
                        {
                            // ISSUE: reference to a compiler-generated field
                            trophyParamList.Add(tropiesCAnonStorey30E.trophy);
                        }
                        else
                        {
                            DateTime serverTime = TimeManager.ServerTime;
                            if (serverTime >= challengeCategoryParam.begin_at.DateTimes && serverTime <= challengeCategoryParam.end_at.DateTimes)
                            {
                                // ISSUE: reference to a compiler-generated field
                                trophyParamList.Add(tropiesCAnonStorey30E.trophy);
                            }
                        }
                    }
                }
            }
            return(trophyParamList.ToArray());
        }