logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ResumeGame

    Action that reacts to ResumeGame signals by resuming gameplay from pause.

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

    This action transitions the application from Pause mode back to Game mode. The transition automatically handles:

    • Restoring time scale via the pause strategy
    • Switching to the Game action map
    • Deactivating the menu context (closing pause menu)
    • Re-binding the pause input action

    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

    ResumeGame()

    Declaration
    public ResumeGame()

    Methods

    Execute(ResumeGameSignal)

    Reacts to the ResumeGame signal by transitioning from Pause to Game mode.

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

    The ResumeGame signal.

    In this article
    © 2026 Serenity. All Rights Reserved