Class EnterMenu
Action that reacts to EnterMenu signals by transitioning to Menu mode.
Namespace: Serenity.GameMode.Application.Events
Assembly: Serenity.GameMode.Application.dll
Syntax
public sealed class EnterMenu : EventDispatcherAction<EnterMenuSignal>
Remarks
This action transitions the application from any mode to Menu mode. It uses the ServiceLocator to find the IGameModeService if not provided in the signal. Uses ServiceLocatorBridge to obtain ILogService since EventDispatcher actions are instantiated via reflection and cannot receive constructor injection.
Constructors
EnterMenu()
Declaration
public EnterMenu()
Methods
Execute(EnterMenuSignal)
Reacts to the EnterMenu signal by transitioning to Menu mode.
Declaration
protected override void Execute(EnterMenuSignal signal)
Parameters
| Type | Name | Description |
|---|---|---|
| EnterMenuSignal | signal | The EnterMenu signal. |