MenuOptionValueChangedEventArgs
Class MenuOptionValueChangedEventArgs
Namespace: SwiftlyS2.Shared.Menus
Assembly: SwiftlyS2.CS2.dll
Event arguments for when a menu option's value changes.
public sealed class MenuOptionValueChangedEventArgs<T> : EventArgsType Parameters
- T — The type of the value.
Inheritance
Inherited Members
- EventArgs.Empty
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Properties
NewValue
Gets the new value after the change.
public required T NewValue { get; init; }Property Value
- T
OldValue
Gets the previous value before the change.
public required T OldValue { get; init; }Property Value
- T
Option
Gets the menu option whose value changed.
public required IMenuOption Option { get; init; }Property Value
Player
Gets the player who triggered the value change.
public required IPlayer Player { get; init; }Property Value