logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Leaderboard.Infrastructure

    Classes

    LeaderboardRecordMapping

    Maps between LeaderboardEntry and the generic StructuredRecord shape, and builds the field-name-driven ordering/schema pieces StructuredStoreLeaderboardAdapter needs. The single place that knows the leaderboard table's column names.

    StructuredStoreLeaderboardAdapter

    ILeaderboardStore implementation that translates every leaderboard operation into calls against the generic IStructuredStore contract, via LeaderboardRecordMapping. The single adapter every leaderboard backend (key-value, HTTP, and — pass 2 — Postgres/MySql/Mongo) shares, so ranking/retention/tie-break policy is expressed exactly once instead of once per backend.

    In this article
    © 2026 Serenity. All Rights Reserved