mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
139 lines
5.3 KiB
C#
139 lines
5.3 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.FmodApi.Studio
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for Studio system events.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-system.html#fmod_studio_system_callback">FMOD_STUDIO_SYSTEM_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result StudioSystemCallback(
|
|
FmodStudioSystem system,
|
|
StudioSystemCallbackType type,
|
|
nint commandData,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback that is fired when a Studio::EventInstance changes state.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-eventinstance.html#fmod_studio_event_callback">FMOD_STUDIO_EVENT_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result EventCallback(EventCallbackType type, EventInstance eventDescription, nint parameters);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for when the command replay goes to the next frame.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#fmod_studio_commandreplay_frame_callback">FMOD_STUDIO_COMMANDREPLAY_FRAME_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public delegate Result CommandReplayFrameCallback(
|
|
CommandReplay replay,
|
|
int commandIndex,
|
|
float currentTime,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for command replay bank loading.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#fmod_studio_commandreplay_load_bank_callback">FMOD_STUDIO_COMMANDREPLAY_LOAD_BANK_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CommandReplayLoadBankCallback(
|
|
CommandReplay replay,
|
|
int commandIndex,
|
|
Guid* bankGuid,
|
|
byte* bankFileName,
|
|
LoadBankFlags flags,
|
|
Bank* bank,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Callback for command replay event instance creation.
|
|
/// </para>
|
|
/// <para>
|
|
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#fmod_studio_commandreplay_create_instance_callback">FMOD_STUDIO_COMMANDREPLAY_CREATE_INSTANCE_CALLBACK</see>
|
|
/// </para>
|
|
/// </summary>
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
|
public unsafe delegate Result CommandReplayCreateInstanceCallback(
|
|
CommandReplay replay,
|
|
int commandIndex,
|
|
EventDescription eventDescription,
|
|
EventInstance* instance,
|
|
nint userData
|
|
);
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="StudioSystemCallback"/>.
|
|
/// </summary>
|
|
public partial struct StudioSystemCallbackPtr(StudioSystemCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator StudioSystemCallbackPtr(StudioSystemCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="EventCallback"/>.
|
|
/// </summary>
|
|
public partial struct EventCallbackPtr(EventCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator EventCallbackPtr(EventCallback? @delegate) => new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CommandReplayFrameCallback"/>.
|
|
/// </summary>
|
|
public partial struct CommandReplayFrameCallbackPtr(CommandReplayFrameCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CommandReplayFrameCallbackPtr(CommandReplayFrameCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CommandReplayLoadBankCallback"/>.
|
|
/// </summary>
|
|
public partial struct CommandReplayLoadBankCallbackPtr(CommandReplayLoadBankCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CommandReplayLoadBankCallbackPtr(CommandReplayLoadBankCallback? @delegate) =>
|
|
new(@delegate);
|
|
}
|
|
|
|
/// <summary>
|
|
/// A wrapper for a function pointer to <see cref="CommandReplayCreateInstanceCallback"/>.
|
|
/// </summary>
|
|
public partial struct CommandReplayCreateInstanceCallbackPtr(CommandReplayCreateInstanceCallback? @delegate)
|
|
{
|
|
private nint _ptr = @delegate is null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(@delegate);
|
|
|
|
public static implicit operator CommandReplayCreateInstanceCallbackPtr(
|
|
CommandReplayCreateInstanceCallback? @delegate
|
|
) => new(@delegate);
|
|
}
|
|
}
|