// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Lobby
{
///
/// Input parameters for the function.
///
public struct JoinLobbyOptions
{
///
/// The handle of the lobby to join
///
public LobbyDetails LobbyDetailsHandle { get; set; }
///
/// The Product User ID of the local user joining the lobby
///
public ProductUserId LocalUserId { get; set; }
///
/// 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
///
///
///
///
///
///
public bool PresenceEnabled { get; set; }
///
/// (Optional) Set this value to override the default local options for the RTC Room, if it is enabled for this lobby. Set this to 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.
///
public LocalRTCOptions? LocalRTCOptions { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct JoinLobbyOptionsInternal : ISettable, 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(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);
}
}
}