Class EnterMenuSignal
Signal dispatched to return to the main menu.
Namespace: Serenity.GameMode.Application.Events
Assembly: Serenity.GameMode.Application.dll
Syntax
public class EnterMenuSignal : EventDispatcherSignal
Remarks
Transitions the application from any mode to Menu mode. Typically dispatched when the player wants to quit to the main menu.
Constructors
EnterMenuSignal()
Creates a new EnterMenuSignal without a service reference.
Declaration
public EnterMenuSignal()
EnterMenuSignal(IGameModeService)
Creates a new EnterMenuSignal with a service reference.
Declaration
public EnterMenuSignal(IGameModeService gameModeService)
Parameters
| Type | Name | Description |
|---|---|---|
| IGameModeService | gameModeService | The game mode service to use. |
Fields
GameModeService
Optional direct reference to the game mode service.
Declaration
public readonly IGameModeService GameModeService
Field Value
| Type | Description |
|---|---|
| IGameModeService |