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.
140 lines
3.8 KiB
140 lines
3.8 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.CreateSessionModification" /> function.
|
|
/// </summary>
|
|
public class CreateSessionModificationOptions
|
|
{
|
|
/// <summary>
|
|
/// Name of the session to create
|
|
/// </summary>
|
|
public string SessionName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Bucket ID associated with the session
|
|
/// </summary>
|
|
public string BucketId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Maximum number of players allowed in the session
|
|
/// </summary>
|
|
public uint MaxPlayers { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Product User ID of the local user associated with 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.
|
|
///
|
|
/// @note 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 <see cref="Presence.PresenceModification.SetJoinInfo" />
|
|
/// <seealso cref="Presence.PresenceModificationSetJoinInfoOptions" />
|
|
/// <seealso cref="Lobby.CreateLobbyOptions" />
|
|
/// <seealso cref="Lobby.JoinLobbyOptions" />
|
|
/// <seealso cref="JoinSessionOptions" />
|
|
/// </summary>
|
|
public bool PresenceEnabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optional session id - set to a globally unique value to override the backend assignment
|
|
/// If not specified the backend service will assign one to the session. Do not mix and match.
|
|
/// This value can be of size [<see cref="SessionModification.SessionmodificationMinSessionidoverrideLength" />, <see cref="SessionModification.SessionmodificationMaxSessionidoverrideLength" />]
|
|
/// </summary>
|
|
public string SessionId { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct CreateSessionModificationOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_SessionName;
|
|
private System.IntPtr m_BucketId;
|
|
private uint m_MaxPlayers;
|
|
private System.IntPtr m_LocalUserId;
|
|
private int m_PresenceEnabled;
|
|
private System.IntPtr m_SessionId;
|
|
|
|
public string SessionName
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_SessionName, value);
|
|
}
|
|
}
|
|
|
|
public string BucketId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_BucketId, value);
|
|
}
|
|
}
|
|
|
|
public uint MaxPlayers
|
|
{
|
|
set
|
|
{
|
|
m_MaxPlayers = value;
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_LocalUserId, value);
|
|
}
|
|
}
|
|
|
|
public bool PresenceEnabled
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_PresenceEnabled, value);
|
|
}
|
|
}
|
|
|
|
public string SessionId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_SessionId, value);
|
|
}
|
|
}
|
|
|
|
public void Set(CreateSessionModificationOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = SessionsInterface.CreatesessionmodificationApiLatest;
|
|
SessionName = other.SessionName;
|
|
BucketId = other.BucketId;
|
|
MaxPlayers = other.MaxPlayers;
|
|
LocalUserId = other.LocalUserId;
|
|
PresenceEnabled = other.PresenceEnabled;
|
|
SessionId = other.SessionId;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as CreateSessionModificationOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_SessionName);
|
|
Helper.TryMarshalDispose(ref m_BucketId);
|
|
Helper.TryMarshalDispose(ref m_LocalUserId);
|
|
Helper.TryMarshalDispose(ref m_SessionId);
|
|
}
|
|
}
|
|
}
|