Class AchievementWizardSummary
Turns an AchievementSettingsCreator.Input into the plain-English "this is what will happen" lines CreateAchievementSettingsWindow's review step prints.
Inherited Members
Namespace: Serenity.Achievements.Infrastructure.Editor.Builder
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public static class AchievementWizardSummary
Remarks
Kept out of the window because it is the one part of a review step that can be wrong in a way a reader
cannot see: a line that names a path the creator will not actually write is worse than no line at all.
Every path comes from AchievementAuthoringPaths and
ComposeAssetPath(AchievementPlatformKind, string) — the very methods the creator writes
to — and the backend line reproduces
AchievementSettingsCreator.AssignBackend's three-way branch in the same order, so the summary and
the run cannot disagree. Neither half reads the asset database: what is already in the project arrives as
a AchievementWizardSummary.ProjectState the window resolves once, which is what keeps the whole description
assertable in an EditMode test.
The boot-task line describes Serenity.Global.Infrastructure.Editor.InitializationPipeline.InstallTaskSectionGui's pending wiring, NOT WireInstallTask — the window wires the task through the section after a successful create and leaves that input off, so describing the input instead would announce nothing on every real run.
Methods
Describe(Input, ProjectState, PendingWiring)
Describes what pressing Create would do, one line per asset or project-wide step.
Declaration
public static IReadOnlyList<string> Describe(AchievementSettingsCreator.Input input, AchievementWizardSummary.ProjectState projectState, InstallTaskSectionGui.PendingWiring bootTask)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementSettingsCreator.Input | input | What would be authored. Never null. |
| AchievementWizardSummary.ProjectState | projectState | What the project already holds at the paths this run targets. |
| PendingWiring | bootTask | What the install-task section would wire, from Serenity.Global.Infrastructure.Editor.InitializationPipeline.InstallTaskSectionGui.DescribePendingWiring. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<string> | The lines, in the order the wizard's steps collected them. |