AchievementDiagnostic14.1
Class in Unbroken.LaunchBox.Plugins.Components.Achievements
public sealed class AchievementDiagnosticDescribes a provider outcome without exposing implementation exceptions.
Constructors
AchievementDiagnosticCreates a translatable diagnostic.
AchievementDiagnostic
public AchievementDiagnostic(
string code,
DiagnosticSeverity severity,
PluginText message,
string? gameId = null
)Creates a translatable diagnostic.
code- Stable diagnostic code.
severity- Diagnostic severity.
message- User-facing message with an English fallback.
gameId- Optional source-local game scope.
Properties
CodeGets the stable diagnostic code.GameIdGets optional game scope.HelpGets or initializes provider-owned help.MessageGets translatable user-facing text.SeverityGets the severity.
Code
public string Code { get; }Gets the stable diagnostic code.
GameId
public string? GameId { get; }Gets optional game scope.
Help
public AchievementHelp? Help { get; init; }Gets or initializes provider-owned help.
Message
public PluginText Message { get; }Gets translatable user-facing text.
Severity
public DiagnosticSeverity Severity { get; }Gets the severity.