logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StartGame

    Action that reacts to StartGame signals by transitioning to Game mode.

    Inheritance
    object
    StartGame
    Namespace: Serenity.GameMode.Application.Events
    Assembly: Serenity.GameMode.Application.dll
    Syntax
    public sealed class StartGame : EventDispatcherAction<StartGameSignal>
    Remarks

    This action transitions the application from Menu mode to Game 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

    StartGame()

    Declaration
    public StartGame()

    Methods

    Execute(StartGameSignal)

    Reacts to the StartGame signal by transitioning to Game mode.

    Declaration
    protected override void Execute(StartGameSignal signal)
    Parameters
    Type Name Description
    StartGameSignal signal

    The StartGame signal.

    In this article
    © 2026 Serenity. All Rights Reserved