示例#1
0
        /// <summary>
        /// Starts an asynchronous task that makes a request to uninstall the specified mod.
        /// the section related to mods in eos_result.h for more details.
        /// </summary>
        /// <param name="options">structure containing the game and mod identifiers</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 UninstallMod(UninstallModOptions options, object clientData, OnUninstallModCallback completionDelegate)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <UninstallModOptionsInternal, UninstallModOptions>(ref optionsAddress, options);

            var clientDataAddress = System.IntPtr.Zero;

            var completionDelegateInternal = new OnUninstallModCallbackInternal(OnUninstallModCallbackInternalImplementation);

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

            EOS_Mods_UninstallMod(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal);

            Helper.TryMarshalDispose(ref optionsAddress);
        }
示例#2
0
 internal static extern void EOS_Mods_UninstallMod(System.IntPtr handle, System.IntPtr options, System.IntPtr clientData, OnUninstallModCallbackInternal completionDelegate);