logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementSyncPushLocaleScope

    Decides which locales a push covers. A push whose author ticked no locale covers every locale the project authors text in — never none, which would send an achievement with no text at all.

    Inheritance
    object
    AchievementSyncPushLocaleScope
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Application.Sync
    Assembly: Serenity.Achievements.Application.dll
    Syntax
    public static class AchievementSyncPushLocaleScope

    Methods

    AllAuthoredLocales(IReadOnlyList<string>, string)

    Every locale the project can author text in: the string table's locales and the authoring locale.

    Declaration
    public static IReadOnlyList<string> AllAuthoredLocales(IReadOnlyList<string> tableLocaleCodes, string authoringLocaleCode)
    Parameters
    Type Name Description
    IReadOnlyList<string> tableLocaleCodes

    The locales of the chosen string table collection. May be null.

    string authoringLocaleCode

    The locale a non-translating achievement's literal text is filed under.

    Returns
    Type Description
    IReadOnlyList<string>

    The locales, distinct and ordinal-sorted.

    Effective(IReadOnlyList<string>, IReadOnlyList<string>)

    The locales a push covers: the ones the author ticked, or every authored locale when none was.

    Declaration
    public static IReadOnlyList<string> Effective(IReadOnlyList<string> chosenLocaleCodes, IReadOnlyList<string> allAuthoredLocaleCodes)
    Parameters
    Type Name Description
    IReadOnlyList<string> chosenLocaleCodes

    The locales the author ticked. May be null or empty.

    IReadOnlyList<string> allAuthoredLocaleCodes

    See AllAuthoredLocales(IReadOnlyList<string>, string).

    Returns
    Type Description
    IReadOnlyList<string>
    In this article
    © 2026 Serenity. All Rights Reserved