// 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
{
///
/// Logged in user identifier from earlier call to family of functions
///
public ProductUserId LocalUserId { get; set; }
///
/// Operating mode
///
public AntiCheatClientMode Mode { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct BeginSessionOptionsInternal : ISettable, 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);
}
}
}