mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-25 06:01:48 +01:00
24 lines
785 B
C#
24 lines
785 B
C#
using Luna;
|
|
using Penumbra.GameData.Interop;
|
|
|
|
namespace Glamourer.Events;
|
|
|
|
/// <summary> Triggered when the visibility of weapons is changed. </summary>
|
|
public sealed class WeaponVisibilityChanged(Logger log)
|
|
: EventBase<WeaponVisibilityChanged.Arguments, WeaponVisibilityChanged.Priority>(nameof(WeaponVisibilityChanged), log)
|
|
{
|
|
public enum Priority
|
|
{
|
|
/// <seealso cref="State.StateListener.OnWeaponVisibilityChange"/>
|
|
StateListener = 0,
|
|
}
|
|
|
|
public ref struct Arguments(Actor actor, ref bool value)
|
|
{
|
|
/// <summary> The actor with changed weapon visibility. </summary>
|
|
public readonly Actor Actor = actor;
|
|
|
|
/// <summary> The new state. </summary>
|
|
public ref bool Value = ref value;
|
|
}
|
|
}
|