You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
3.3 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Mods
{
/// <summary>
/// Output parameters for the <see cref="ModsInterface.UninstallMod" /> Function. These parameters are received through the callback provided to <see cref="ModsInterface.UninstallMod" />
/// </summary>
public struct UninstallModCallbackInfo : ICallbackInfo
{
/// <summary>
/// Result code for the operation. <see cref="Result.Success" /> is returned if the uninstallation was successful, otherwise one of the error codes is returned.
/// </summary>
public Result ResultCode { get; set; }
/// <summary>
/// The Epic Account ID of the user for which mod uninstallation was requested
/// </summary>
public EpicAccountId LocalUserId { get; set; }
/// <summary>
/// Context that is passed into <see cref="ModsInterface.UninstallMod" />
/// </summary>
public object ClientData { get; set; }
/// <summary>
/// Mod for which uninstallation was requested
/// </summary>
public ModIdentifier? Mod { get; set; }
public Result? GetResultCode()
{
return ResultCode;
}
internal void Set(ref UninstallModCallbackInfoInternal other)
{
ResultCode = other.ResultCode;
LocalUserId = other.LocalUserId;
ClientData = other.ClientData;
Mod = other.Mod;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UninstallModCallbackInfoInternal : ICallbackInfoInternal, IGettable<UninstallModCallbackInfo>, ISettable<UninstallModCallbackInfo>, System.IDisposable
{
private Result m_ResultCode;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_ClientData;
private System.IntPtr m_Mod;
public Result ResultCode
{
get
{
return m_ResultCode;
}
set
{
m_ResultCode = value;
}
}
public EpicAccountId LocalUserId
{
get
{
EpicAccountId value;
Helper.Get(m_LocalUserId, out value);
return value;
}
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public object ClientData
{
get
{
object value;
Helper.Get(m_ClientData, out value);
return value;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public System.IntPtr ClientDataAddress
{
get
{
return m_ClientData;
}
}
public ModIdentifier? Mod
{
get
{
ModIdentifier? value;
Helper.Get<ModIdentifierInternal, ModIdentifier>(m_Mod, out value);
return value;
}
set
{
Helper.Set<ModIdentifier, ModIdentifierInternal>(ref value, ref m_Mod);
}
}
public void Set(ref UninstallModCallbackInfo other)
{
ResultCode = other.ResultCode;
LocalUserId = other.LocalUserId;
ClientData = other.ClientData;
Mod = other.Mod;
}
public void Set(ref UninstallModCallbackInfo? other)
{
if (other.HasValue)
{
ResultCode = other.Value.ResultCode;
LocalUserId = other.Value.LocalUserId;
ClientData = other.Value.ClientData;
Mod = other.Value.Mod;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_Mod);
}
public void Get(out UninstallModCallbackInfo output)
{
output = new UninstallModCallbackInfo();
output.Set(ref this);
}
}
}