Esempio n. 1
0
        public Achievement(STUAchievement achievement)
        {
            Name        = GetString(achievement.m_name);
            Description = GetString(achievement.m_description);

            Trophy     = achievement.m_trophy;
            Category   = achievement.m_category;
            GamerScore = achievement.m_gamerScore;

            if (achievement.m_unlock != 0)
            {
                Reward = new Unlock(achievement.m_unlock);
            }
        }
Esempio n. 2
0
        public void Init(STUAchievement achievement, ulong key = default)
        {
            GUID            = (teResourceGUID)key;
            Name            = GetString(achievement.m_name);
            AchievementName = achievement.m_4E291DCC.Value;
            Description     = GetString(achievement.m_description);

            Trophy     = achievement.m_trophy;
            Category   = achievement.m_category;
            GamerScore = achievement.m_gamerScore;

            if (achievement.m_unlock != 0)
            {
                Reward = new Unlock(achievement.m_unlock);
            }
        }