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.
Inherited Members
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 |
| AchievementProgress? | progress | The tracked progress, or |
| AchievementRowMappingOptions | options | The presentation choices. |
Returns
| Type | Description |
|---|---|
| AchievementRowContent | The row, or |