Struct AchievementsStudioPlatformCoverage
How one storefront is covered by one achievement: whether the achievement names an identifier for it, and whether the project ships on it at all.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor.Studio
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public readonly struct AchievementsStudioPlatformCoverage
Remarks
Two booleans rather than one, because a missing identifier means opposite things either side of the settings asset. A project that never assigned a Steam platform definition has said it does not ship on Steam, and a blank Steam API name on every achievement is then simply the truth; the same blank on a project that did assign one is the defect the authoring rules report. Collapsing them into "covered / not covered" would paint a local-only project's whole list red.
Constructors
AchievementsStudioPlatformCoverage(AchievementPlatformKind, bool, bool)
Creates a coverage entry.
Declaration
public AchievementsStudioPlatformCoverage(AchievementPlatformKind platform, bool hasIdentifier, bool isEnabledInProject)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementPlatformKind | platform | The storefront. |
| bool | hasIdentifier | Whether the achievement names an identifier for it. |
| bool | isEnabledInProject | Whether the project ships on it. |
Fields
HasIdentifier
Declaration
public readonly bool HasIdentifier
Field Value
| Type | Description |
|---|---|
| bool | Whether the achievement names an identifier for that storefront. |
IsEnabledInProject
Declaration
public readonly bool IsEnabledInProject
Field Value
| Type | Description |
|---|---|
| bool | Whether any achievement settings asset in the project assigns that storefront. |
Platform
Declaration
public readonly AchievementPlatformKind Platform
Field Value
| Type | Description |
|---|---|
| AchievementPlatformKind | The storefront this describes. |
Properties
Initial
Declaration
public string Initial { get; }
Property Value
| Type | Description |
|---|---|
| string | The single letter a list row shows for this storefront. |
IsMissingIdentifier
Declaration
public bool IsMissingIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| bool | Whether the project ships on this storefront and the achievement has no identifier for it. |