logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class EndGameSessionAction

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

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

    Constructors

    EndGameSessionAction()

    Declaration
    public EndGameSessionAction()

    Properties

    LogCategory

    Preserves the "EndGameSession" log category used before this class had an "Action" suffix, which no longer matches the default (the runtime type name).

    Declaration
    protected override string LogCategory { get; }
    Property Value
    Type Description
    string

    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.

    In this article
    © 2026 Serenity. All Rights Reserved