logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAchievementPlayerIdentityProvider

    Application port that answers "whose achievements are these". Achievements are keyed at the account level, not per save slot, so the identity has to come from outside the save system.

    Namespace: Serenity.Achievements.Application.Interfaces.Services
    Assembly: Serenity.Achievements.Application.dll
    Syntax
    public interface IAchievementPlayerIdentityProvider
    Remarks

    The service reads this ONCE per LoadAsync and writes as that player until the next load. An implementation whose value changes mid-session (a profile switch, a late sign-in) must therefore have LoadAsync called again to take effect; without that rule a single session would scatter its unlocks across two accounts, and a screenshot captured before the switch would be filed under the player who did not earn it.

    Properties

    Current

    The player achievement reads and writes apply to right now.

    Declaration
    PlayerId Current { get; }
    Property Value
    Type Description
    PlayerId
    In this article
    © 2026 Serenity. All Rights Reserved