public void Set(GetLeaderboardDefinitionCountOptions other) { if (other != null) { m_ApiVersion = LeaderboardsInterface.GetleaderboarddefinitioncountApiLatest; } }
/// <summary> /// Fetch the number of leaderboards definitions that are cached locally. /// <seealso cref="CopyLeaderboardDefinitionByIndex" /> /// <seealso cref="CopyLeaderboardDefinitionByLeaderboardId" /> /// </summary> /// <param name="options">The Options associated with retrieving the leaderboard count.</param> /// <returns> /// Number of leaderboards or 0 if there is an error /// </returns> public uint GetLeaderboardDefinitionCount(GetLeaderboardDefinitionCountOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <GetLeaderboardDefinitionCountOptionsInternal, GetLeaderboardDefinitionCountOptions>(ref optionsAddress, options); var funcResult = EOS_Leaderboards_GetLeaderboardDefinitionCount(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }