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.

107 lines
2.5 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.UpdateMod" /> Function. These parameters are received through the callback provided to <see cref="ModsInterface.UpdateMod" />
/// </summary>
public class UpdateModCallbackInfo : ICallbackInfo, ISettable
{
/// <summary>
/// Result code for the operation. <see cref="Result.Success" /> is returned if the request to update was successfull, otherwise one of the error codes is returned.
/// </summary>
public Result ResultCode { get; private set; }
/// <summary>
/// The Epic Account ID of the user for which mod update was requested
/// </summary>
public EpicAccountId LocalUserId { get; private set; }
/// <summary>
/// Context that is passed into <see cref="ModsInterface.UpdateMod" />
/// </summary>
public object ClientData { get; private set; }
/// <summary>
/// Mod for which update was requested
/// </summary>
public ModIdentifier Mod { get; private set; }
public Result? GetResultCode()
{
return ResultCode;
}
internal void Set(UpdateModCallbackInfoInternal? other)
{
if (other != null)
{
ResultCode = other.Value.ResultCode;
LocalUserId = other.Value.LocalUserId;
ClientData = other.Value.ClientData;
Mod = other.Value.Mod;
}
}
public void Set(object other)
{
Set(other as UpdateModCallbackInfoInternal?);
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UpdateModCallbackInfoInternal : ICallbackInfoInternal
{
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;
}
}
public EpicAccountId LocalUserId
{
get
{
EpicAccountId value;
Helper.TryMarshalGet(m_LocalUserId, out value);
return value;
}
}
public object ClientData
{
get
{
object value;
Helper.TryMarshalGet(m_ClientData, out value);
return value;
}
}
public System.IntPtr ClientDataAddress
{
get
{
return m_ClientData;
}
}
public ModIdentifier Mod
{
get
{
ModIdentifier value;
Helper.TryMarshalGet<ModIdentifierInternal, ModIdentifier>(m_Mod, out value);
return value;
}
}
}
}