LaunchBoxContributors
On this page

AchievementSourceDescriptor14.1

Class in Unbroken.LaunchBox.Plugins.Components.Achievements

C#
public sealed class AchievementSourceDescriptor
Names a logical source and its stable identity; only one enabled provider may claim a source ID.

Constructors

AchievementSourceDescriptor

C#
public AchievementSourceDescriptor(string sourceId, PluginText displayName)
Creates source metadata without performing I/O.
sourceId
Canonical lowercase ID, at most 128 ASCII letters, digits, dots, underscores, or hyphens; starts with a letter or digit.
displayName
Plugin-owned translatable name.

Properties

DisplayName

C#
public PluginText DisplayName { get; }
Gets the translatable name.

IconResourceId

C#
public string? IconResourceId { get; init; }
Gets or initializes an optional package image resource ID.

SourceId

C#
public string SourceId { get; }
Gets the implementation-independent source ID.

Remarks

Capabilities sharing this logical source ID must use the same source-local game-ID namespace. A component exposing different game-ID namespaces must distinguish their logical source identities; sharing a component instance alone does not establish interchangeable IDs.