logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class EnterMenu

    Action that reacts to EnterMenu signals by transitioning to Menu mode.

    Inheritance
    object
    EnterMenu
    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.

    In this article
    © 2026 Serenity. All Rights Reserved