swiftlys2/docs/api/ai/
API Reference Menus

MenuOptionValidatingEventArgs

Class
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
public sealed class MenuOptionValidatingEventArgs : EventArgs
Inherits object, EventArgs

Provides event data for menu option validation events.

View source

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