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.2 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Lobby
{
/// <summary>
/// Output parameters for the <see cref="LobbyInterface.AddNotifyLobbyMemberStatusReceived" /> function.
/// </summary>
public struct LobbyMemberStatusReceivedCallbackInfo : ICallbackInfo
{
/// <summary>
/// Context that was passed into <see cref="LobbyInterface.AddNotifyLobbyMemberStatusReceived" />
/// </summary>
public object ClientData { get; set; }
/// <summary>
/// The ID of the lobby
/// </summary>
public Utf8String LobbyId { get; set; }
/// <summary>
/// The Product User ID of the lobby member
/// </summary>
public ProductUserId TargetUserId { get; set; }
/// <summary>
/// Latest status of the user
/// </summary>
public LobbyMemberStatus CurrentStatus { get; set; }
public Result? GetResultCode()
{
return null;
}
internal void Set(ref LobbyMemberStatusReceivedCallbackInfoInternal other)
{
ClientData = other.ClientData;
LobbyId = other.LobbyId;
TargetUserId = other.TargetUserId;
CurrentStatus = other.CurrentStatus;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct LobbyMemberStatusReceivedCallbackInfoInternal : ICallbackInfoInternal, IGettable<LobbyMemberStatusReceivedCallbackInfo>, ISettable<LobbyMemberStatusReceivedCallbackInfo>, System.IDisposable
{
private System.IntPtr m_ClientData;
private System.IntPtr m_LobbyId;
private System.IntPtr m_TargetUserId;
private LobbyMemberStatus m_CurrentStatus;
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 Utf8String LobbyId
{
get
{
Utf8String value;
Helper.Get(m_LobbyId, out value);
return value;
}
set
{
Helper.Set(value, ref m_LobbyId);
}
}
public ProductUserId TargetUserId
{
get
{
ProductUserId value;
Helper.Get(m_TargetUserId, out value);
return value;
}
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public LobbyMemberStatus CurrentStatus
{
get
{
return m_CurrentStatus;
}
set
{
m_CurrentStatus = value;
}
}
public void Set(ref LobbyMemberStatusReceivedCallbackInfo other)
{
ClientData = other.ClientData;
LobbyId = other.LobbyId;
TargetUserId = other.TargetUserId;
CurrentStatus = other.CurrentStatus;
}
public void Set(ref LobbyMemberStatusReceivedCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
LobbyId = other.Value.LobbyId;
TargetUserId = other.Value.TargetUserId;
CurrentStatus = other.Value.CurrentStatus;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_LobbyId);
Helper.Dispose(ref m_TargetUserId);
}
public void Get(out LobbyMemberStatusReceivedCallbackInfo output)
{
output = new LobbyMemberStatusReceivedCallbackInfo();
output.Set(ref this);
}
}
}