SwiftlyS2

MenuOptionValidatingEventArgs

Class MenuOptionValidatingEventArgs

Namespace: SwiftlyS2.Shared.Menus

Assembly: SwiftlyS2.CS2.dll

Provides event data for menu option validation events.

public sealed class MenuOptionValidatingEventArgs : EventArgs

Inheritance

Inherited Members

Properties

Cancel

Gets or sets a value indicating whether the interaction should be canceled.

public bool Cancel { get; set; }
Property Value

CancelReason

Gets or sets the reason why the interaction was canceled.

public string? CancelReason { get; set; }
Property Value

Option

The menu option being validated.

public required IMenuOption Option { get; init; }
Property Value

Player

The player attempting to interact with the option.

public required IPlayer Player { get; init; }
Property Value

On this page