mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-14 06:40:41 +00:00
171 lines
4.9 KiB
C#
171 lines
4.9 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Platform
|
|
{
|
|
/// <summary>
|
|
/// Options for initializing the Epic Online Services SDK.
|
|
/// </summary>
|
|
public class AndroidInitializeOptions
|
|
{
|
|
/// <summary>
|
|
/// A custom memory allocator, if desired.
|
|
/// </summary>
|
|
public System.IntPtr AllocateMemoryFunction { get; set; }
|
|
|
|
/// <summary>
|
|
/// A corresponding memory reallocator. If the AllocateMemoryFunction is nulled, then this field must also be nulled.
|
|
/// </summary>
|
|
public System.IntPtr ReallocateMemoryFunction { get; set; }
|
|
|
|
/// <summary>
|
|
/// A corresponding memory releaser. If the AllocateMemoryFunction is nulled, then this field must also be nulled.
|
|
/// </summary>
|
|
public System.IntPtr ReleaseMemoryFunction { get; set; }
|
|
|
|
/// <summary>
|
|
/// The name of the product using the Epic Online Services SDK.
|
|
///
|
|
/// The name string is required to be non-empty and at maximum of 64 characters long.
|
|
/// The string buffer can consist of the following characters:
|
|
/// A-Z, a-z, 0-9, dot, underscore, space, exclamation mark, question mark, and sign, hyphen, parenthesis, plus, minus, colon.
|
|
/// </summary>
|
|
public string ProductName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Product version of the running application.
|
|
///
|
|
/// The name string has same requirements as the ProductName string.
|
|
/// </summary>
|
|
public string ProductVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// A reserved field that should always be nulled.
|
|
/// </summary>
|
|
public System.IntPtr Reserved { get; set; }
|
|
|
|
/// <summary>
|
|
/// This field is for system specific initialization if any.
|
|
///
|
|
/// If provided then the structure will be located in <System>/eos_<system>.h.
|
|
/// The structure will be named EOS_<System>_InitializeOptions.
|
|
/// </summary>
|
|
public AndroidInitializeOptionsSystemInitializeOptions SystemInitializeOptions { get; set; }
|
|
|
|
/// <summary>
|
|
/// The thread affinity override values for each category of thread.
|
|
/// </summary>
|
|
public InitializeThreadAffinity OverrideThreadAffinity { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct AndroidInitializeOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_AllocateMemoryFunction;
|
|
private System.IntPtr m_ReallocateMemoryFunction;
|
|
private System.IntPtr m_ReleaseMemoryFunction;
|
|
private System.IntPtr m_ProductName;
|
|
private System.IntPtr m_ProductVersion;
|
|
private System.IntPtr m_Reserved;
|
|
private System.IntPtr m_SystemInitializeOptions;
|
|
private System.IntPtr m_OverrideThreadAffinity;
|
|
|
|
public System.IntPtr AllocateMemoryFunction
|
|
{
|
|
set
|
|
{
|
|
m_AllocateMemoryFunction = value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ReallocateMemoryFunction
|
|
{
|
|
set
|
|
{
|
|
m_ReallocateMemoryFunction = value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ReleaseMemoryFunction
|
|
{
|
|
set
|
|
{
|
|
m_ReleaseMemoryFunction = value;
|
|
}
|
|
}
|
|
|
|
public string ProductName
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_ProductName, value);
|
|
}
|
|
}
|
|
|
|
public string ProductVersion
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_ProductVersion, value);
|
|
}
|
|
}
|
|
|
|
public System.IntPtr Reserved
|
|
{
|
|
set
|
|
{
|
|
m_Reserved = value;
|
|
}
|
|
}
|
|
|
|
public AndroidInitializeOptionsSystemInitializeOptions SystemInitializeOptions
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet<AndroidInitializeOptionsSystemInitializeOptionsInternal, AndroidInitializeOptionsSystemInitializeOptions>(ref m_SystemInitializeOptions, value);
|
|
}
|
|
}
|
|
|
|
public InitializeThreadAffinity OverrideThreadAffinity
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet<InitializeThreadAffinityInternal, InitializeThreadAffinity>(ref m_OverrideThreadAffinity, value);
|
|
}
|
|
}
|
|
|
|
public void Set(AndroidInitializeOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = PlatformInterface.InitializeApiLatest;
|
|
AllocateMemoryFunction = other.AllocateMemoryFunction;
|
|
ReallocateMemoryFunction = other.ReallocateMemoryFunction;
|
|
ReleaseMemoryFunction = other.ReleaseMemoryFunction;
|
|
ProductName = other.ProductName;
|
|
ProductVersion = other.ProductVersion;
|
|
Reserved = other.Reserved;
|
|
SystemInitializeOptions = other.SystemInitializeOptions;
|
|
OverrideThreadAffinity = other.OverrideThreadAffinity;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as AndroidInitializeOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_AllocateMemoryFunction);
|
|
Helper.TryMarshalDispose(ref m_ReallocateMemoryFunction);
|
|
Helper.TryMarshalDispose(ref m_ReleaseMemoryFunction);
|
|
Helper.TryMarshalDispose(ref m_ProductName);
|
|
Helper.TryMarshalDispose(ref m_ProductVersion);
|
|
Helper.TryMarshalDispose(ref m_Reserved);
|
|
Helper.TryMarshalDispose(ref m_SystemInitializeOptions);
|
|
Helper.TryMarshalDispose(ref m_OverrideThreadAffinity);
|
|
}
|
|
}
|
|
} |