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.
110 lines
3.0 KiB
110 lines
3.0 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Sessions
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="SessionsInterface.JoinSession" /> function.
|
|
/// </summary>
|
|
public struct JoinSessionOptions
|
|
{
|
|
/// <summary>
|
|
/// Name of the session to create after joining session
|
|
/// </summary>
|
|
public Utf8String SessionName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Session handle to join
|
|
/// </summary>
|
|
public SessionDetails SessionHandle { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the local user who is joining the session
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// If true, this session will be associated with presence. Only one session at a time can have this flag true.
|
|
/// 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="Lobby.CreateLobbyOptions" />
|
|
/// <seealso cref="Lobby.JoinLobbyOptions" />
|
|
/// <seealso cref="CreateSessionModificationOptions" />
|
|
/// </summary>
|
|
public bool PresenceEnabled { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct JoinSessionOptionsInternal : ISettable<JoinSessionOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_SessionName;
|
|
private System.IntPtr m_SessionHandle;
|
|
private System.IntPtr m_LocalUserId;
|
|
private int m_PresenceEnabled;
|
|
|
|
public Utf8String SessionName
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_SessionName);
|
|
}
|
|
}
|
|
|
|
public SessionDetails SessionHandle
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_SessionHandle);
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public bool PresenceEnabled
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_PresenceEnabled);
|
|
}
|
|
}
|
|
|
|
public void Set(ref JoinSessionOptions other)
|
|
{
|
|
m_ApiVersion = SessionsInterface.JoinsessionApiLatest;
|
|
SessionName = other.SessionName;
|
|
SessionHandle = other.SessionHandle;
|
|
LocalUserId = other.LocalUserId;
|
|
PresenceEnabled = other.PresenceEnabled;
|
|
}
|
|
|
|
public void Set(ref JoinSessionOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = SessionsInterface.JoinsessionApiLatest;
|
|
SessionName = other.Value.SessionName;
|
|
SessionHandle = other.Value.SessionHandle;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
PresenceEnabled = other.Value.PresenceEnabled;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_SessionName);
|
|
Helper.Dispose(ref m_SessionHandle);
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
}
|
|
}
|
|
}
|