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.

115 lines
2.3 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.IntegratedPlatform
{
/// <summary>
/// </summary>
public struct Options
{
/// <summary>
/// The type to be initialized.
/// </summary>
public Utf8String Type { get; set; }
/// <summary>
/// Identifies how to initialize the IntegratedPlatform.
/// </summary>
public IntegratedPlatformManagementFlags Flags { get; set; }
/// <summary>
/// Options specific to this integrated platform type.
/// This parameter is either required or set to <see langword="null" /> based on the platform type.
/// <seealso cref="SteamOptions" />
/// </summary>
public System.IntPtr InitOptions { get; set; }
internal void Set(ref OptionsInternal other)
{
Type = other.Type;
Flags = other.Flags;
InitOptions = other.InitOptions;
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct OptionsInternal : IGettable<Options>, ISettable<Options>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_Type;
private IntegratedPlatformManagementFlags m_Flags;
private System.IntPtr m_InitOptions;
public Utf8String Type
{
get
{
Utf8String value;
Helper.Get(m_Type, out value);
return value;
}
set
{
Helper.Set(value, ref m_Type);
}
}
public IntegratedPlatformManagementFlags Flags
{
get
{
return m_Flags;
}
set
{
m_Flags = value;
}
}
public System.IntPtr InitOptions
{
get
{
return m_InitOptions;
}
set
{
m_InitOptions = value;
}
}
public void Set(ref Options other)
{
m_ApiVersion = IntegratedPlatformInterface.OptionsApiLatest;
Type = other.Type;
Flags = other.Flags;
InitOptions = other.InitOptions;
}
public void Set(ref Options? other)
{
if (other.HasValue)
{
m_ApiVersion = IntegratedPlatformInterface.OptionsApiLatest;
Type = other.Value.Type;
Flags = other.Value.Flags;
InitOptions = other.Value.InitOptions;
}
}
public void Dispose()
{
Helper.Dispose(ref m_Type);
Helper.Dispose(ref m_InitOptions);
}
public void Get(out Options output)
{
output = new Options();
output.Set(ref this);
}
}
}