SwiftlyS2

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> : EventArgs
Type Parameters
  • T — The type of the value.

Inheritance

Inherited Members

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

On this page