public void Set(GetPlayerAchievementCountOptions other) { if (other != null) { m_ApiVersion = AchievementsInterface.GetplayerachievementcountApiLatest; UserId = other.UserId; } }
/// <summary> /// Fetch the number of player achievements that are cached locally. /// <seealso cref="CopyPlayerAchievementByIndex" /> /// </summary> /// <param name="options">The Options associated with retrieving the player achievement count</param> /// <returns> /// Number of player achievements or 0 if there is an error /// </returns> public uint GetPlayerAchievementCount(GetPlayerAchievementCountOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <GetPlayerAchievementCountOptionsInternal, GetPlayerAchievementCountOptions>(ref optionsAddress, options); var funcResult = EOS_Achievements_GetPlayerAchievementCount(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }