mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,66 @@
|
|||
// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue