public void Set(GetStatCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = StatsInterface.GetstatscountApiLatest;
         TargetUserId = other.TargetUserId;
     }
 }
예제 #2
0
        /// <summary>
        /// Fetch the number of stats that are cached locally.
        /// <seealso cref="CopyStatByIndex" />
        /// </summary>
        /// <param name="options">The Options associated with retrieving the stat count</param>
        /// <returns>
        /// Number of stats or 0 if there is an error
        /// </returns>
        public uint GetStatsCount(GetStatCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetStatCountOptionsInternal, GetStatCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_Stats_GetStatsCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }