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.
81 lines
2.3 KiB
81 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>
|
|
/// Required initialization options to use with <see cref="Options" /> for Steam.
|
|
/// <seealso cref="Options" />
|
|
/// </summary>
|
|
public struct SteamOptions
|
|
{
|
|
/// <summary>
|
|
/// Usage of this parameter is dependent on the specified <see cref="IntegratedPlatformManagementFlags" />.
|
|
///
|
|
/// Optional with <see cref="IntegratedPlatformManagementFlags.LibraryManagedByApplication" />.
|
|
/// Set to override the loaded library basename, or use <see langword="null" /> to assume the default basename by platform:
|
|
///
|
|
/// - Linux: libsteam_api.so,
|
|
/// - macOS: libsteam_api.dylib,
|
|
/// - Windows 32-bit: steam_api.dll,
|
|
/// - Windows 64-bit: steam_api64.dll.
|
|
///
|
|
/// Required with <see cref="IntegratedPlatformManagementFlags.LibraryManagedBySDK" />.
|
|
/// Set to a fully qualified file path to the Steamworks SDK runtime library on disk.
|
|
/// </summary>
|
|
public Utf8String OverrideLibraryPath { get; set; }
|
|
|
|
internal void Set(ref SteamOptionsInternal other)
|
|
{
|
|
OverrideLibraryPath = other.OverrideLibraryPath;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct SteamOptionsInternal : IGettable<SteamOptions>, ISettable<SteamOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_OverrideLibraryPath;
|
|
|
|
public Utf8String OverrideLibraryPath
|
|
{
|
|
get
|
|
{
|
|
Utf8String value;
|
|
Helper.Get(m_OverrideLibraryPath, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_OverrideLibraryPath);
|
|
}
|
|
}
|
|
|
|
public void Set(ref SteamOptions other)
|
|
{
|
|
m_ApiVersion = IntegratedPlatformInterface.SteamOptionsApiLatest;
|
|
OverrideLibraryPath = other.OverrideLibraryPath;
|
|
}
|
|
|
|
public void Set(ref SteamOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = IntegratedPlatformInterface.SteamOptionsApiLatest;
|
|
OverrideLibraryPath = other.Value.OverrideLibraryPath;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_OverrideLibraryPath);
|
|
}
|
|
|
|
public void Get(out SteamOptions output)
|
|
{
|
|
output = new SteamOptions();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|