API Reference › Menu
MenuActionDescriptor
ClassNamespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public sealed record MenuActionDescriptor : IEquatable<MenuActionDescriptor>Inherits object
Implements IEquatable<MenuActionDescriptor>
Declares a bindable menu action along with the key it uses when nothing overrides it.
Descriptors are the only place an action is defined. Nothing in the framework hardcodes a key, which is what lets plugins add and remove actions at runtime.
View source