logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LoadGameAction

    Action that reacts to RequestLoadGameSignal by loading the signaled slot through the IGameSaveService.

    Inheritance
    object
    LoadGameAction
    Namespace: Serenity.GameSave.Application.Events
    Assembly: Serenity.GameSave.Application.dll
    Syntax
    public sealed class LoadGameAction : EventDispatcherAction<RequestLoadGameSignal>
    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 load runs fire-and-forget with its own failure logging, matching the framework's never-throw-in-runtime philosophy.

    Constructors

    LoadGameAction()

    Declaration
    public LoadGameAction()

    Methods

    Execute(RequestLoadGameSignal)

    Reacts to the RequestLoadGameSignal by loading its target slot.

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

    The RequestLoadGame signal.

    In this article
    © 2026 Serenity. All Rights Reserved