mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using MiraAPI.Hud;
|
|
|
|
namespace MiraAPI.Events.Vanilla.Gameplay;
|
|
|
|
/// <summary>
|
|
/// Invoked when a Vanilla <see cref="AbilityButton"/> click is cancelled. Do not use for <see cref="CustomActionButton"/>.
|
|
/// </summary>
|
|
/// <typeparam name="T">The vanilla <see cref="AbilityButton"/> type.</typeparam>
|
|
/// <param name="button">The vanilla <see cref="AbilityButton"/> whose click was cancelled.</param>
|
|
public sealed class VanillaButtonCancelledEvent<T>(T button) : MiraEvent
|
|
where T : AbilityButton
|
|
{
|
|
/// <summary>
|
|
/// Gets the Vanilla <see cref="AbilityButton"/> whose click was cancelled.
|
|
/// </summary>
|
|
public T Button { get; } = button;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Invoked when a Vanilla <see cref="AbilityButton"/> click is cancelled. Do not use for <see cref="CustomActionButton"/>s.
|
|
/// </summary>
|
|
/// <param name="button">The vanilla <see cref="AbilityButton"/> whose click was cancelled.</param>
|
|
public sealed class VanillaButtonCancelledEvent(AbilityButton button) : MiraEvent
|
|
{
|
|
/// <summary>
|
|
/// Gets the Vanilla <see cref="AbilityButton"/> whose click was cancelled.
|
|
/// </summary>
|
|
public AbilityButton Button { get; } = button;
|
|
}
|