logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SaveGameAction

    Action that reacts to RequestSaveGameSignal by saving the active slot through the IGameSaveService.

    Inheritance
    object
    SaveGameAction
    Namespace: Serenity.GameSave.Application.Events
    Assembly: Serenity.GameSave.Application.dll
    Syntax
    public sealed class SaveGameAction : EventDispatcherAction<RequestSaveGameSignal>
    Remarks

    Uses ServiceLocatorBridge (via the base class' TryResolveService) to obtain the IGameSaveService since EventDispatcher actions are instantiated via reflection and cannot receive constructor injection. Never throws: an unresolved service logs a warning and returns; the underlying save runs fire-and-forget with its own failure logging, matching the framework's never-throw-in-runtime philosophy.

    Constructors

    SaveGameAction()

    Declaration
    public SaveGameAction()

    Methods

    Execute(RequestSaveGameSignal)

    Reacts to the RequestSaveGameSignal by saving the active slot.

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

    The RequestSaveGame signal.

    In this article
    © 2026 Serenity. All Rights Reserved