logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementRowContentMapper

    Turns an authored achievement plus what the player has done with it into the display-ready AchievementRowContent the listing draws. Pure: no engine dependencies, so the rules that decide what a player is allowed to see are unit tested without an editor or a player context.

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

    Methods

    Map(AchievementDefinition, AchievementUnlockRecord?, AchievementProgress?, AchievementRowMappingOptions)

    Maps one achievement to the row the listing shows for it.

    Declaration
    public static AchievementRowContent Map(AchievementDefinition definition, AchievementUnlockRecord? unlockRecord, AchievementProgress? progress, AchievementRowMappingOptions options = null)
    Parameters
    Type Name Description
    AchievementDefinition definition

    The authored achievement.

    AchievementUnlockRecord? unlockRecord

    The unlock record, or null while the achievement is locked.

    AchievementProgress? progress

    The tracked progress, or null when none is tracked.

    AchievementRowMappingOptions options

    The presentation choices. null uses the shipped defaults.

    Returns
    Type Description
    AchievementRowContent

    The row, or null when there is no definition to map.

    In this article
    © 2026 Serenity. All Rights Reserved