swiftlys2/docs/api/ai/
API Reference › Menu

MenuActionContext

Struct
Namespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public readonly record struct MenuActionContext : IEquatable<MenuActionContext>

Describes an action being dispatched to a menu and its components.

View source

Properties

Action

The action that was triggered.

public required MenuActionId Action { get; init; }
Property Value

Key

The key that triggered the action.

public required MenuKey Key { get; init; }
Property Value

Menu

The menu the action was dispatched to.

public IMenu Menu { get; }
Property Value

Player

The player who triggered the action.

public IPlayer Player { get; }
Property Value

Session

The session the action was dispatched to.

public required IMenuSession Session { get; init; }
Property Value