Exemple #1
0
 public void Set(GetUnlockedAchievementCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = AchievementsInterface.GetunlockedachievementcountApiLatest;
         UserId       = other.UserId;
     }
 }
        /// <summary>
        /// DEPRECATED! Use <see cref="GetPlayerAchievementCount" />, <see cref="CopyPlayerAchievementByIndex" /> and filter for unlocked instead.
        ///
        /// Fetch the number of unlocked achievements that are cached locally.
        /// <seealso cref="CopyUnlockedAchievementByIndex" />
        /// </summary>
        /// <param name="options">The Options associated with retrieving the unlocked achievement count</param>
        /// <returns>
        /// Number of unlocked achievements or 0 if there is an error
        /// </returns>
        public uint GetUnlockedAchievementCount(GetUnlockedAchievementCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetUnlockedAchievementCountOptionsInternal, GetUnlockedAchievementCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_Achievements_GetUnlockedAchievementCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }