mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.FmodApi.Studio
|
|
{
|
|
public static partial class FmodStudio
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Parses a GUID from a string.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-common.html#studio_parseid">Studio::parseID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TryParseId(RefString8 idString, out Guid id)
|
|
{
|
|
fixed (byte* idStringPtr = idString)
|
|
fixed (Guid* idPtr = &id)
|
|
return PInvoke.ParseId(idStringPtr, idPtr);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Parses a GUID from a string.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-common.html#studio_parseid">Studio::parseID</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Guid ParseId(RefString8 idString)
|
|
{
|
|
TryParseId(idString, out var id).Check();
|
|
return id;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This function creates the studio system.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-system.html#studio_system_create">Studio::System::create</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe Result TrySystemCreate(out FmodStudioSystem system, uint headerVersion)
|
|
{
|
|
fixed (FmodStudioSystem* systemPtr = &system)
|
|
return PInvoke.SystemCreate(systemPtr, headerVersion);
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This function creates the studio system.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-system.html#studio_system_create">Studio::System::create</see>
|
|
/// </para>
|
|
/// </summary>
|
|
public static FmodStudioSystem SystemCreate(uint headerVersion)
|
|
{
|
|
TrySystemCreate(out var system, headerVersion).Check();
|
|
return system;
|
|
}
|
|
}
|
|
}
|