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.
113 lines
3.6 KiB
113 lines
3.6 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>
|
|
/// Input parameters for the <see cref="LobbyInterface.JoinLobby" /> function.
|
|
/// </summary>
|
|
public struct JoinLobbyOptions
|
|
{
|
|
/// <summary>
|
|
/// The handle of the lobby to join
|
|
/// </summary>
|
|
public LobbyDetails LobbyDetailsHandle { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the local user joining the lobby
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// If true, this lobby will be associated with the user's presence information. A user can only associate one lobby at a time with their presence information.
|
|
/// This affects the ability of the Social Overlay to show game related actions to take in the user's social graph.
|
|
/// The Social Overlay can handle only one of the following three options at a time:
|
|
/// using the bPresenceEnabled flags within the Sessions interface
|
|
/// using the bPresenceEnabled flags within the Lobby interface
|
|
/// using EOS_PresenceModification_SetJoinInfo
|
|
/// <seealso cref="Presence.PresenceModificationSetJoinInfoOptions" />
|
|
/// <seealso cref="CreateLobbyOptions" />
|
|
/// <seealso cref="JoinLobbyOptions" />
|
|
/// <seealso cref="Sessions.CreateSessionModificationOptions" />
|
|
/// <seealso cref="Sessions.JoinSessionOptions" />
|
|
/// </summary>
|
|
public bool PresenceEnabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// (Optional) Set this value to override the default local options for the RTC Room, if it is enabled for this lobby. Set this to <see langword="null" /> if
|
|
/// your application does not use the Lobby RTC Rooms feature, or if you would like to use the default settings. This option is ignored if
|
|
/// the specified lobby does not have an RTC Room enabled and will not cause errors.
|
|
/// </summary>
|
|
public LocalRTCOptions? LocalRTCOptions { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct JoinLobbyOptionsInternal : ISettable<JoinLobbyOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LobbyDetailsHandle;
|
|
private System.IntPtr m_LocalUserId;
|
|
private int m_PresenceEnabled;
|
|
private System.IntPtr m_LocalRTCOptions;
|
|
|
|
public LobbyDetails LobbyDetailsHandle
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LobbyDetailsHandle);
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public bool PresenceEnabled
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_PresenceEnabled);
|
|
}
|
|
}
|
|
|
|
public LocalRTCOptions? LocalRTCOptions
|
|
{
|
|
set
|
|
{
|
|
Helper.Set<LocalRTCOptions, LocalRTCOptionsInternal>(ref value, ref m_LocalRTCOptions);
|
|
}
|
|
}
|
|
|
|
public void Set(ref JoinLobbyOptions other)
|
|
{
|
|
m_ApiVersion = LobbyInterface.JoinlobbyApiLatest;
|
|
LobbyDetailsHandle = other.LobbyDetailsHandle;
|
|
LocalUserId = other.LocalUserId;
|
|
PresenceEnabled = other.PresenceEnabled;
|
|
LocalRTCOptions = other.LocalRTCOptions;
|
|
}
|
|
|
|
public void Set(ref JoinLobbyOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = LobbyInterface.JoinlobbyApiLatest;
|
|
LobbyDetailsHandle = other.Value.LobbyDetailsHandle;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
PresenceEnabled = other.Value.PresenceEnabled;
|
|
LocalRTCOptions = other.Value.LocalRTCOptions;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LobbyDetailsHandle);
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_LocalRTCOptions);
|
|
}
|
|
}
|
|
}
|