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.
62 lines
2.2 KiB
62 lines
2.2 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Presence
|
|
{
|
|
/// <summary>
|
|
/// Data for the <see cref="PresenceModification.SetJoinInfo" /> function.
|
|
/// </summary>
|
|
public struct PresenceModificationSetJoinInfoOptions
|
|
{
|
|
/// <summary>
|
|
/// The string which will be advertised as this player's join info.
|
|
/// An application is expected to freely define the meaning of this string to use for connecting to an active game session.
|
|
/// The string should not exceed <see cref="PresenceModification.PresencemodificationJoininfoMaxLength" /> in length.
|
|
/// This affects the ability of the Social Overlay to show game related actions to take in the player'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="Lobby.CreateLobbyOptions" />
|
|
/// <seealso cref="Lobby.JoinLobbyOptions" />
|
|
/// <seealso cref="Sessions.CreateSessionModificationOptions" />
|
|
/// <seealso cref="Sessions.JoinSessionOptions" />
|
|
/// </summary>
|
|
public Utf8String JoinInfo { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct PresenceModificationSetJoinInfoOptionsInternal : ISettable<PresenceModificationSetJoinInfoOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_JoinInfo;
|
|
|
|
public Utf8String JoinInfo
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_JoinInfo);
|
|
}
|
|
}
|
|
|
|
public void Set(ref PresenceModificationSetJoinInfoOptions other)
|
|
{
|
|
m_ApiVersion = PresenceModification.PresencemodificationSetjoininfoApiLatest;
|
|
JoinInfo = other.JoinInfo;
|
|
}
|
|
|
|
public void Set(ref PresenceModificationSetJoinInfoOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = PresenceModification.PresencemodificationSetjoininfoApiLatest;
|
|
JoinInfo = other.Value.JoinInfo;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_JoinInfo);
|
|
}
|
|
}
|
|
}
|