LaunchBoxContributors
On this page

AchievementCatalog14.1

Class in Unbroken.LaunchBox.Plugins.Components.Achievements

C#
public sealed class AchievementCatalog
Contains definitions for one game, independently of account progress.

Constructors

AchievementCatalog

C#
public AchievementCatalog(
    string gameId,
    IReadOnlyCollection<AchievementDefinition> achievements,
    bool isComplete = true
)
Creates a per-game catalog.
gameId
Source-local game ID.
achievements
Definitions; an explicit complete empty catalog means no achievements.
isComplete
Whether all definitions for this game were returned.

Properties

  • AchievementsGets definitions.
  • GameIdGets the source-local game ID.
  • IsCompleteGets whether definitions are complete for this game.
  • WebUriGets or initializes the game's achievements page.

Achievements

C#
public IReadOnlyCollection<AchievementDefinition> Achievements { get; }
Gets definitions.

GameId

C#
public string GameId { get; }
Gets the source-local game ID.

IsComplete

C#
public bool IsComplete { get; }
Gets whether definitions are complete for this game.

WebUri

C#
public Uri? WebUri { get; init; }
Gets or initializes the game's achievements page.