示例#1
0
 // Token: 0x0600038B RID: 907 RVA: 0x0000DAFF File Offset: 0x0000BCFF
 public static AchievementDef GetAchievementDef(ServerAchievementIndex index)
 {
     if (index.intValue >= 0 && index.intValue < AchievementManager.serverAchievementDefs.Length)
     {
         return(AchievementManager.serverAchievementDefs[index.intValue]);
     }
     return(null);
 }
示例#2
0
 // Token: 0x060003B0 RID: 944 RVA: 0x0000E37E File Offset: 0x0000C57E
 public void SetServerAchievementTracked(ServerAchievementIndex serverAchievementIndex, bool shouldTrack)
 {
     if (this.serverAchievementTrackingMask[serverAchievementIndex.intValue] == shouldTrack)
     {
         return;
     }
     this.serverAchievementTrackingMask[serverAchievementIndex.intValue] = shouldTrack;
     this.serverAchievementTrackingMaskDirty = true;
 }
示例#3
0
        // Token: 0x060003B4 RID: 948 RVA: 0x0000E4E0 File Offset: 0x0000C6E0
        public void HandleServerAchievementCompleted(ServerAchievementIndex serverAchievementIndex)
        {
            BaseAchievement baseAchievement = this.achievementsList.FirstOrDefault((BaseAchievement a) => a.achievementDef.serverIndex == serverAchievementIndex);

            if (baseAchievement == null)
            {
                return;
            }
            baseAchievement.Grant();
        }