Esempio n. 1
0
 public void Set(GetLeaderboardRecordCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LeaderboardsInterface.GetleaderboardrecordcountApiLatest;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Fetch the number of leaderboard records that are cached locally.
        /// <seealso cref="CopyLeaderboardRecordByIndex" />
        /// <seealso cref="CopyLeaderboardRecordByUserId" />
        /// </summary>
        /// <param name="options">The Options associated with retrieving the leaderboard record count.</param>
        /// <returns>
        /// Number of leaderboard records or 0 if there is an error
        /// </returns>
        public uint GetLeaderboardRecordCount(GetLeaderboardRecordCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetLeaderboardRecordCountOptionsInternal, GetLeaderboardRecordCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_Leaderboards_GetLeaderboardRecordCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }