public void Set(GetPlayerSanctionCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SanctionsInterface.GetplayersanctioncountApiLatest;
         TargetUserId = other.TargetUserId;
     }
 }
示例#2
0
        /// <summary>
        /// Fetch the number of player sanctions that have been retrieved for a given player.
        /// You must call QueryActivePlayerSanctions first to retrieve the data from the service backend.
        /// <seealso cref="QueryActivePlayerSanctions" />
        /// <seealso cref="CopyPlayerSanctionByIndex" />
        /// </summary>
        /// <param name="options">Structure containing the input parameters</param>
        /// <returns>
        /// Number of available sanctions for this player.
        /// </returns>
        public uint GetPlayerSanctionCount(GetPlayerSanctionCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetPlayerSanctionCountOptionsInternal, GetPlayerSanctionCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_Sanctions_GetPlayerSanctionCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }