logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameSaveService

    Unity-facing GameSaveService specialization.

    Inheritance
    object
    UnityGameSaveService
    Namespace: Serenity.GameSave.Infrastructure.Services
    Assembly: Serenity.UnityGameSave.Infrastructure.dll
    Syntax
    public class UnityGameSaveService : GameSaveService
    Remarks

    Adds no behavior beyond the engine-agnostic base: this subclass exists to stamp a concrete Id/Guid identity on construction, matching the registration convention every other Unity service implementation follows (e.g. UnityGameProgressService).

    Constructors

    UnityGameSaveService(IGameSaveStore, IGameSaveSettings, IEventDispatcherService, ILogService)

    Initializes a new instance of the UnityGameSaveService class.

    Declaration
    public UnityGameSaveService(IGameSaveStore store, IGameSaveSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService)
    Parameters
    Type Name Description
    IGameSaveStore store

    Backend store used to persist and load individual save slots.

    IGameSaveSettings settings

    Business-facing configuration, at minimum the configured slot count.

    IEventDispatcherService eventDispatcherService

    Dispatcher used to broadcast save/load/delete signals. May be null.

    ILogService logService

    Logging service. May be null.

    In this article
    © 2026 Serenity. All Rights Reserved