Exemple #1
0
 // Token: 0x06002174 RID: 8564 RVA: 0x00090EEC File Offset: 0x0008F0EC
 private static void AddAchievementToOrderedList(string achievementIdentifier, HashSet <string> encounteredIdentifiers)
 {
     if (encounteredIdentifiers.Contains(achievementIdentifier))
     {
         return;
     }
     encounteredIdentifiers.Add(achievementIdentifier);
     AchievementListPanelController.sortedAchievementIdentifiers.Add(achievementIdentifier);
     string[] childAchievementIdentifiers = AchievementManager.GetAchievementDef(achievementIdentifier).childAchievementIdentifiers;
     for (int i = 0; i < childAchievementIdentifiers.Length; i++)
     {
         AchievementListPanelController.AddAchievementToOrderedList(childAchievementIdentifiers[i], encounteredIdentifiers);
     }
 }
Exemple #2
0
        // Token: 0x06002173 RID: 8563 RVA: 0x00090E94 File Offset: 0x0008F094
        private static void BuildAchievementListOrder()
        {
            AchievementListPanelController.sortedAchievementIdentifiers.Clear();
            HashSet <string>            encounteredIdentifiers         = new HashSet <string>();
            ReadOnlyCollection <string> readOnlyAchievementIdentifiers = AchievementManager.readOnlyAchievementIdentifiers;

            for (int i = 0; i < readOnlyAchievementIdentifiers.Count; i++)
            {
                string achievementIdentifier = readOnlyAchievementIdentifiers[i];
                if (string.IsNullOrEmpty(AchievementManager.GetAchievementDef(achievementIdentifier).prerequisiteAchievementIdentifier))
                {
                    AchievementListPanelController.AddAchievementToOrderedList(achievementIdentifier, encounteredIdentifiers);
                }
            }
        }
Exemple #3
0
 // Token: 0x06002172 RID: 8562 RVA: 0x00090E70 File Offset: 0x0008F070
 static AchievementListPanelController()
 {
     AchievementListPanelController.BuildAchievementListOrder();
     AchievementManager.onAchievementsRegistered += AchievementListPanelController.BuildAchievementListOrder;
 }