logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Leaderboard.Domain.Services

    Classes

    LeaderboardRanker

    Pure ranking policy for leaderboard entries: deterministic sorting and competition-style rank assignment (equal values share a rank; the next distinct value skips the gap). Ties are detected by exact double equality, matching relational RANK() OVER (ORDER BY ...) semantics, so ranking policy stays identical across backends. Callers submitting computed floating-point values must quantize them first if they expect ties.

    ScoreMetricSortMapping

    Pure mapping from a ScoreMetricKind to the leaderboard sort direction that makes sense for it (e.g. lower is better for elapsed time).

    In this article
    © 2026 Serenity. All Rights Reserved