logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class EndGameSessionSignal

    Signal dispatched to end the current game session and return to the main menu.

    Inheritance
    object
    EndGameSessionSignal
    Namespace: Serenity.GameMode.Application.Events
    Assembly: Serenity.GameMode.Application.dll
    Syntax
    public class EndGameSessionSignal : EventDispatcherSignal
    Remarks

    Optionally carries a reference to the IGameModeService for direct access. If not provided, the action will attempt to locate the service via the ServiceLocator.

    Constructors

    EndGameSessionSignal()

    Creates a new EndGameSessionSignal without a service reference.

    Declaration
    public EndGameSessionSignal()

    EndGameSessionSignal(IGameModeService)

    Creates a new EndGameSessionSignal with a service reference.

    Declaration
    public EndGameSessionSignal(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
    In this article
    © 2026 Serenity. All Rights Reserved