mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58: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,576 @@
|
|||
// <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>
|
||||
/// Checks that the CommandReplay reference is valid.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_isvalid">Studio::CommandReplay::isValid</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Bool32 IsValid(this CommandReplay replay) => PInvoke.CommandReplayIsValid(replay);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the Studio System object associated with this replay object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getsystem">Studio::CommandReplay::getSystem</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetSystem(this CommandReplay replay, out FmodStudioSystem system)
|
||||
{
|
||||
fixed (FmodStudioSystem* systemPtr = &system)
|
||||
return PInvoke.CommandReplayGetSystem(replay, systemPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the Studio System object associated with this replay object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getsystem">Studio::CommandReplay::getSystem</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static FmodStudioSystem GetSystem(this CommandReplay replay)
|
||||
{
|
||||
TryGetSystem(replay, out var system).Check();
|
||||
return system;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the total playback time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getlength">Studio::CommandReplay::getLength</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetLength(this CommandReplay replay, out float length)
|
||||
{
|
||||
fixed (float* lengthPtr = &length)
|
||||
return PInvoke.CommandReplayGetLength(replay, lengthPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the total playback time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getlength">Studio::CommandReplay::getLength</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetLength(this CommandReplay replay)
|
||||
{
|
||||
TryGetLength(replay, out var length).Check();
|
||||
return length;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of commands in the replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandcount">Studio::CommandReplay::getCommandCount</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetCommandCount(this CommandReplay replay, out int count)
|
||||
{
|
||||
fixed (int* countPtr = &count)
|
||||
return PInvoke.CommandReplayGetCommandCount(replay, countPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of commands in the replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandcount">Studio::CommandReplay::getCommandCount</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetCommandCount(this CommandReplay replay)
|
||||
{
|
||||
TryGetCommandCount(replay, out var count).Check();
|
||||
return count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves command information.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandinfo">Studio::CommandReplay::getCommandInfo</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetCommandInfo(this CommandReplay replay, int commandIndex, out CommandInfo info)
|
||||
{
|
||||
fixed (CommandInfo* infoPtr = &info)
|
||||
return PInvoke.CommandReplayGetCommandInfo(replay, commandIndex, infoPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves command information.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandinfo">Studio::CommandReplay::getCommandInfo</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CommandInfo GetCommandInfo(this CommandReplay replay, int commandIndex)
|
||||
{
|
||||
TryGetCommandInfo(replay, commandIndex, out var info).Check();
|
||||
return info;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the string representation of a command.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandstring">Studio::CommandReplay::getCommandString</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetCommandString(
|
||||
this CommandReplay replay,
|
||||
int commandIndex,
|
||||
byte* buffer,
|
||||
int length
|
||||
) => PInvoke.CommandReplayGetCommandString(replay, commandIndex, buffer, length);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the string representation of a command.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandstring">Studio::CommandReplay::getCommandString</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void GetCommandString(
|
||||
this CommandReplay replay,
|
||||
int commandIndex,
|
||||
byte* buffer,
|
||||
int length
|
||||
) => TryGetCommandString(replay, commandIndex, buffer, length).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the command index corresponding to the given playback time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandattime">Studio::CommandReplay::getCommandAtTime</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetCommandAtTime(this CommandReplay replay, float time, out int commandIndex)
|
||||
{
|
||||
fixed (int* commandIndexPtr = &commandIndex)
|
||||
return PInvoke.CommandReplayGetCommandAtTime(replay, time, commandIndexPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the command index corresponding to the given playback time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcommandattime">Studio::CommandReplay::getCommandAtTime</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetCommandAtTime(this CommandReplay replay, float time)
|
||||
{
|
||||
TryGetCommandAtTime(replay, time, out var commandIndex).Check();
|
||||
return commandIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a path substition that will be used when loading banks with this replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setbankpath">Studio::CommandReplay::setBankPath</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetBankPath(this CommandReplay replay, RefString8 bankPath)
|
||||
{
|
||||
fixed (byte* bankPathPtr = bankPath)
|
||||
return PInvoke.CommandReplaySetBankPath(replay, bankPathPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a path substition that will be used when loading banks with this replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setbankpath">Studio::CommandReplay::setBankPath</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetBankPath(this CommandReplay replay, RefString8 bankPath) =>
|
||||
TrySetBankPath(replay, bankPath).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Begins playback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If the replay is already running then calling this function will restart replay from the beginning.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> Studio::CommandReplay::stop, Studio::CommandReplay::getPlaybackState
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_start">Studio::CommandReplay::start</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryStart(this CommandReplay replay) => PInvoke.CommandReplayStart(replay);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Begins playback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If the replay is already running then calling this function will restart replay from the beginning.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> Studio::CommandReplay::stop, Studio::CommandReplay::getPlaybackState
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_start">Studio::CommandReplay::start</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Start(this CommandReplay replay) => TryStart(replay).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Stops playback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If the FMOD_STUDIO_COMMANDREPLAY_SKIP_CLEANUP flag has been used then the system state is left as it was
|
||||
/// at the end of the playback, otherwise all resources that were created as part of the replay will be
|
||||
/// cleaned up.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> Studio::CommandReplay::start, Studio::CommandReplay::getPlaybackState,
|
||||
/// Studio::System::loadCommandReplay
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_stop">Studio::CommandReplay::stop</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryStop(this CommandReplay replay) => PInvoke.CommandReplayStop(replay);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Stops playback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If the FMOD_STUDIO_COMMANDREPLAY_SKIP_CLEANUP flag has been used then the system state is left as it was
|
||||
/// at the end of the playback, otherwise all resources that were created as part of the replay will be
|
||||
/// cleaned up.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> Studio::CommandReplay::start, Studio::CommandReplay::getPlaybackState,
|
||||
/// Studio::System::loadCommandReplay
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_stop">Studio::CommandReplay::stop</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Stop(this CommandReplay replay) => TryStop(replay).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Seeks the playback position to a time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_seektotime">Studio::CommandReplay::seekToTime</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySeekToTime(this CommandReplay replay, float time) =>
|
||||
PInvoke.CommandReplaySeekToTime(replay, time);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Seeks the playback position to a time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_seektotime">Studio::CommandReplay::seekToTime</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SeekToTime(this CommandReplay replay, float time) => TrySeekToTime(replay, time).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Seeks the playback position to a command.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_seektocommand">Studio::CommandReplay::seekToCommand</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySeekToCommand(this CommandReplay replay, int commandIndex) =>
|
||||
PInvoke.CommandReplaySeekToCommand(replay, commandIndex);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Seeks the playback position to a command.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_seektocommand">Studio::CommandReplay::seekToCommand</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SeekToCommand(this CommandReplay replay, int commandIndex) =>
|
||||
TrySeekToCommand(replay, commandIndex).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the paused state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getpaused">Studio::CommandReplay::getPaused</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPaused(this CommandReplay replay, out Bool32 paused)
|
||||
{
|
||||
fixed (Bool32* pausedPtr = &paused)
|
||||
return PInvoke.CommandReplayGetPaused(replay, pausedPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the paused state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getpaused">Studio::CommandReplay::getPaused</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Bool32 GetPaused(this CommandReplay replay)
|
||||
{
|
||||
TryGetPaused(replay, out var paused).Check();
|
||||
return paused;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the paused state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setpaused">Studio::CommandReplay::setPaused</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetPaused(this CommandReplay replay, Bool32 paused) =>
|
||||
PInvoke.CommandReplaySetPaused(replay, paused);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the paused state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setpaused">Studio::CommandReplay::setPaused</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetPaused(this CommandReplay replay, Bool32 paused) => TrySetPaused(replay, paused).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the playback state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getplaybackstate">Studio::CommandReplay::getPlaybackState</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPlaybackState(this CommandReplay replay, out PlaybackState state)
|
||||
{
|
||||
fixed (PlaybackState* statePtr = &state)
|
||||
return PInvoke.CommandReplayGetPlaybackState(replay, statePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the playback state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getplaybackstate">Studio::CommandReplay::getPlaybackState</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static PlaybackState GetPlaybackState(this CommandReplay replay)
|
||||
{
|
||||
TryGetPlaybackState(replay, out var state).Check();
|
||||
return state;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the progress through the command replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcurrentcommand">Studio::CommandReplay::getCurrentCommand</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetCurrentCommand(
|
||||
this CommandReplay replay,
|
||||
out int commandIndex,
|
||||
out float currentTime
|
||||
)
|
||||
{
|
||||
fixed (int* commandIndexPtr = &commandIndex)
|
||||
fixed (float* currentTimePtr = ¤tTime)
|
||||
return PInvoke.CommandReplayGetCurrentCommand(replay, commandIndexPtr, currentTimePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the progress through the command replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getcurrentcommand">Studio::CommandReplay::getCurrentCommand</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void GetCurrentCommand(this CommandReplay replay, out int commandIndex, out float currentTime) =>
|
||||
TryGetCurrentCommand(replay, out commandIndex, out currentTime).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases the command replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_release">Studio::CommandReplay::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryRelease(this CommandReplay replay) => PInvoke.CommandReplayRelease(replay);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases the command replay.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_release">Studio::CommandReplay::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Release(this CommandReplay replay) => TryRelease(replay).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a callback that is issued each time the replay reaches a new frame.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setframecallback">Studio::CommandReplay::setFrameCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetFrameCallback(this CommandReplay replay, CommandReplayFrameCallbackPtr callback) =>
|
||||
PInvoke.CommandReplaySetFrameCallback(replay, callback);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a callback that is issued each time the replay reaches a new frame.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setframecallback">Studio::CommandReplay::setFrameCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetFrameCallback(this CommandReplay replay, CommandReplayFrameCallbackPtr callback) =>
|
||||
TrySetFrameCallback(replay, callback).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the bank loading callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setloadbankcallback">Studio::CommandReplay::setLoadBankCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetLoadBankCallback(
|
||||
this CommandReplay replay,
|
||||
CommandReplayLoadBankCallbackPtr callback
|
||||
) => PInvoke.CommandReplaySetLoadBankCallback(replay, callback);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the bank loading callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setloadbankcallback">Studio::CommandReplay::setLoadBankCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetLoadBankCallback(this CommandReplay replay, CommandReplayLoadBankCallbackPtr callback) =>
|
||||
TrySetLoadBankCallback(replay, callback).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the create event instance callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setcreateinstancecallback">Studio::CommandReplay::setCreateInstanceCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetCreateInstanceCallback(
|
||||
this CommandReplay replay,
|
||||
CommandReplayCreateInstanceCallbackPtr callback
|
||||
) => PInvoke.CommandReplaySetCreateInstanceCallback(replay, callback);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the create event instance callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setcreateinstancecallback">Studio::CommandReplay::setCreateInstanceCallback</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetCreateInstanceCallback(
|
||||
this CommandReplay replay,
|
||||
CommandReplayCreateInstanceCallbackPtr callback
|
||||
) => TrySetCreateInstanceCallback(replay, callback).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves user data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getuserdata">Studio::CommandReplay::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetUserData(this CommandReplay replay, out nint userData)
|
||||
{
|
||||
fixed (nint* userDataPtr = &userData)
|
||||
return PInvoke.CommandReplayGetUserData(replay, userDataPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves user data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_getuserdata">Studio::CommandReplay::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static nint GetUserData(this CommandReplay replay)
|
||||
{
|
||||
TryGetUserData(replay, out var userData).Check();
|
||||
return userData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets user data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setuserdata">Studio::CommandReplay::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetUserData(this CommandReplay replay, nint userData) =>
|
||||
PInvoke.CommandReplaySetUserData(replay, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets user data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-commandreplay.html#studio_commandreplay_setuserdata">Studio::CommandReplay::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetUserData(this CommandReplay replay, nint userData) =>
|
||||
TrySetUserData(replay, userData).Check();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue