Beispiel #1
0
        /// <summary>
        /// Start an asynchronous query to retrieve any active sanctions for a specified user.
        /// Call <see cref="GetPlayerSanctionCount" /> and <see cref="CopyPlayerSanctionByIndex" /> to retrieve the data.
        /// <seealso cref="GetPlayerSanctionCount" />
        /// <seealso cref="CopyPlayerSanctionByIndex" />
        /// </summary>
        /// <param name="options">Structure containing the input parameters</param>
        /// <param name="clientData">Arbitrary data that is passed back to you in the CompletionDelegate</param>
        /// <param name="completionDelegate">A callback that is fired when the async operation completes, either successfully or in error</param>
        public void QueryActivePlayerSanctions(QueryActivePlayerSanctionsOptions options, object clientData, OnQueryActivePlayerSanctionsCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <QueryActivePlayerSanctionsOptionsInternal, QueryActivePlayerSanctionsOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnQueryActivePlayerSanctionsCallbackInternal(OnQueryActivePlayerSanctionsCallbackInternalImplementation);

            Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal);

            EOS_Sanctions_QueryActivePlayerSanctions(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }
Beispiel #2
0
 internal static extern void EOS_Sanctions_QueryActivePlayerSanctions(System.IntPtr handle, System.IntPtr options, System.IntPtr clientData, OnQueryActivePlayerSanctionsCallbackInternal completionDelegate);