// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Mods { /// /// Output parameters for the Function. These parameters are received through the callback provided to /// public struct UpdateModCallbackInfo : ICallbackInfo { /// /// Result code for the operation. is returned if the request to update was successful, otherwise one of the error codes is returned. /// public Result ResultCode { get; set; } /// /// The Epic Account ID of the user for which mod update was requested /// public EpicAccountId LocalUserId { get; set; } /// /// Context that is passed into /// public object ClientData { get; set; } /// /// Mod for which update was requested /// public ModIdentifier? Mod { get; set; } public Result? GetResultCode() { return ResultCode; } internal void Set(ref UpdateModCallbackInfoInternal 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 UpdateModCallbackInfoInternal : ICallbackInfoInternal, IGettable, ISettable, 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(m_Mod, out value); return value; } set { Helper.Set(ref value, ref m_Mod); } } public void Set(ref UpdateModCallbackInfo other) { ResultCode = other.ResultCode; LocalUserId = other.LocalUserId; ClientData = other.ClientData; Mod = other.Mod; } public void Set(ref UpdateModCallbackInfo? 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 UpdateModCallbackInfo output) { output = new UpdateModCallbackInfo(); output.Set(ref this); } } }