logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementWizardPlatformStepGui

    The storefront step of CreateAchievementSettingsWindow: a row of chips that switch the storefronts on, and — under each switched-on chip — only that storefront's own fields.

    Inheritance
    object
    AchievementWizardPlatformStepGui
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
    Syntax
    public static class AchievementWizardPlatformStepGui
    Remarks

    One AchievementWizardPlatformStepGui.PlatformCard row per storefront rather than a switch per question. Everything the step needs to know about a storefront — its label, how many fields it costs, and how to draw them — sits on a single line of Serenity.Achievements.Infrastructure.Editor.Builder.AchievementWizardPlatformStepGui.Cards, so adding a fifth storefront is one row here plus one entry in AllKinds. There is deliberately no default fallback: Serenity.Achievements.Infrastructure.Editor.Builder.AchievementWizardPlatformStepGui.CardFor(Serenity.Achievements.Application.Authoring.AchievementPlatformKind) throws for an unlisted kind, and CanDraw(AchievementPlatformKind) lets a test prove every declared kind has a card before a reader ever meets one that does not.

    Methods

    CanDraw(AchievementPlatformKind)

    Whether this step knows how to draw kind — the seam a coverage test asserts.

    Declaration
    public static bool CanDraw(AchievementPlatformKind kind)
    Parameters
    Type Name Description
    AchievementPlatformKind kind
    Returns
    Type Description
    bool

    Draw(AchievementWizardPlatformSelection, AchievementPlatformFields)

    Draws the chip row and the fields of every enabled storefront, mutating both arguments in place.

    Declaration
    public static void Draw(AchievementWizardPlatformSelection selection, AchievementPlatformFields fields)
    Parameters
    Type Name Description
    AchievementWizardPlatformSelection selection

    Which storefronts are on. Never null.

    AchievementPlatformFields fields

    The per-storefront values. Never null.

    In this article
    © 2026 Serenity. All Rights Reserved