logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLeaderboardService

    Unity-facing LeaderboardService specialization.

    Inheritance
    object
    UnityLeaderboardService
    Namespace: Serenity.Leaderboard.Infrastructure.Services
    Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
    Syntax
    public class UnityLeaderboardService : LeaderboardService
    Remarks

    Adds no submission behavior beyond the engine-agnostic base: LeaderboardService already stamps UtcNow ticks whenever a submission's timestamp is unset. This subclass exists to stamp a concrete Id/Guid identity on construction, matching the registration convention every other Unity service implementation follows (e.g. UnityGameCameraService).

    Constructors

    UnityLeaderboardService(ILeaderboardStore, IReadOnlyDictionary<BoardId, LeaderboardDefinition>, IEventDispatcherService, ILogService)

    Initializes a new instance of the UnityLeaderboardService class.

    Declaration
    public UnityLeaderboardService(ILeaderboardStore store, IReadOnlyDictionary<BoardId, LeaderboardDefinition> boards, IEventDispatcherService eventDispatcherService, ILogService logService)
    Parameters
    Type Name Description
    ILeaderboardStore store

    Backend store used to persist and query leaderboard entries.

    IReadOnlyDictionary<BoardId, LeaderboardDefinition> boards

    Registered leaderboard definitions, keyed by their board identifier.

    IEventDispatcherService eventDispatcherService

    Dispatcher used to broadcast submission/clear signals. May be null.

    ILogService logService

    Logging service. May be null.

    In this article
    © 2026 Serenity. All Rights Reserved