Domain.UserAchievementDictionaryExtensions.IsAchieved C# (CSharp) Method

IsAchieved() public static method

public static IsAchieved ( UserAchievement>.this dict, AchievementKey key ) : bool
dict UserAchievement>.this
key AchievementKey
return bool
        public static bool IsAchieved(this TrackableDictionary<int, UserAchievement> dict,
                                      AchievementKey key)
        {
            UserAchievement ach;
            return dict.TryGetValue((int)key, out ach) && ach.AchieveTime.HasValue;
        }
UserAchievementDictionaryExtensions