public void Set(GetLeaderboardUserScoreCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = LeaderboardsInterface.GetleaderboarduserscorecountApiLatest;
         StatName     = other.StatName;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Fetch the number of leaderboard user scores that are cached locally.
        /// <seealso cref="CopyLeaderboardUserScoreByIndex" />
        /// <seealso cref="CopyLeaderboardUserScoreByUserId" />
        /// </summary>
        /// <param name="options">The Options associated with retrieving the leaderboard user scores count.</param>
        /// <returns>
        /// Number of leaderboard records or 0 if there is an error
        /// </returns>
        public uint GetLeaderboardUserScoreCount(GetLeaderboardUserScoreCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetLeaderboardUserScoreCountOptionsInternal, GetLeaderboardUserScoreCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_Leaderboards_GetLeaderboardUserScoreCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }