Class EndGameSessionAction
Action that reacts to EndGameSession signals by transitioning to Menu mode.
Namespace: Serenity.GameMode.Application.Events
Assembly: Serenity.GameMode.Application.dll
Syntax
public sealed class EndGameSessionAction : EventDispatcherAction<EndGameSessionSignal>
Remarks
This action transitions the application from Game mode to Menu mode, effectively ending the current game session and returning to the main menu. 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
EndGameSessionAction()
Declaration
public EndGameSessionAction()
Methods
Execute(EndGameSessionSignal)
Reacts to the EndGameSession signal by transitioning to Menu mode.
Declaration
protected override void Execute(EndGameSessionSignal signal)
Parameters
| Type | Name | Description |
|---|---|---|
| EndGameSessionSignal | signal | The EndGameSession signal. |