Example #1
0
    public AchievementStatusesEnum GetNormalAchievementStatuses(AcheivementKey key)
    {
        if (AchievementState.IsSystemAchievement(key))
        {
            return(AchievementStatusesEnum.Invalid);
        }
        Int32 achievementIntIndex = this.GetAchievementIntIndex(key);
        Int32 achievementBitIndex = this.GetAchievementBitIndex(key);

        return(AchievementState.ConvertDataToAchievementStatus(this.EvtReservedArray[achievementIntIndex], achievementBitIndex));
    }
Example #2
0
    public void SetNormalAchievementStatuses(AcheivementKey key, AchievementStatusesEnum status)
    {
        if (AchievementState.IsSystemAchievement(key))
        {
            return;
        }
        Int32 achievementIntIndex = this.GetAchievementIntIndex(key);
        Int32 achievementBitIndex = this.GetAchievementBitIndex(key);
        Int32 num  = AchievementState.ConvertAchievementStatusToData(status, achievementBitIndex);
        Int32 num2 = 3 << achievementBitIndex;

        this.EvtReservedArray[achievementIntIndex] &= ~num2;
        this.EvtReservedArray[achievementIntIndex] |= num;
    }