logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class GameModeChangedSignal

    Signal dispatched when the game mode changes.

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

    Constructors

    GameModeChangedSignal(GameMode, GameMode)

    Creates a new GameModeChangedSignal.

    Declaration
    public GameModeChangedSignal(GameMode previousMode, GameMode newMode)
    Parameters
    Type Name Description
    GameMode previousMode

    The mode before the change.

    GameMode newMode

    The mode after the change.

    Fields

    NewMode

    The game mode after the transition.

    Declaration
    public readonly GameMode NewMode
    Field Value
    Type Description
    GameMode

    PreviousMode

    The game mode before the transition.

    Declaration
    public readonly GameMode PreviousMode
    Field Value
    Type Description
    GameMode

    Methods

    ToString()

    Returns a string representation of the signal.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved