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.
64 lines
1.5 KiB
64 lines
1.5 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.AntiCheatClient
|
|
{
|
|
public struct BeginSessionOptions
|
|
{
|
|
/// <summary>
|
|
/// Logged in user identifier from earlier call to <see cref="Connect.ConnectInterface.Login" /> family of functions
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Operating mode
|
|
/// </summary>
|
|
public AntiCheatClientMode Mode { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct BeginSessionOptionsInternal : ISettable<BeginSessionOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private AntiCheatClientMode m_Mode;
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public AntiCheatClientMode Mode
|
|
{
|
|
set
|
|
{
|
|
m_Mode = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref BeginSessionOptions other)
|
|
{
|
|
m_ApiVersion = AntiCheatClientInterface.BeginsessionApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
Mode = other.Mode;
|
|
}
|
|
|
|
public void Set(ref BeginSessionOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = AntiCheatClientInterface.BeginsessionApiLatest;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
Mode = other.Value.Mode;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
}
|
|
}
|
|
}
|