swiftlys2/docs/api/releases/features/ai/
API Reference › Menus

MenuOptionEventArgs

Class
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
[Obsolete("The classic menu system is deprecated and will be removed in future versions. Use Core.Menu (IMenuService) instead.")]
public sealed class MenuOptionEventArgs : EventArgs
Inherits object, EventArgs

Provides event data for menu option events.

The Player property will be null for this event since it's a global property change.

View source

Properties

Option

The menu option involved in this event, or null for lifecycle events like opening or closing the menu.

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

Player

The player who triggered this menu event.

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