logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum SerenityInstallableSystemSettingsCardinality

    How many settings assets a SerenityInstallableSystemAttribute-decorated system's SettingsTypeName is meant to have in a project at once. Most systems are a project-wide singleton; a handful declare one row per configured item on purpose (a game setting, an audio player, a structured log sink, a HUD, a persistence backend) — for those, finding more than one asset of the settings type is the expected shape, not an ambiguity.

    Namespace: Serenity.Shared.Attributes
    Assembly: Serenity.Shared.dll
    Syntax
    public enum SerenityInstallableSystemSettingsCardinality

    Fields

    Name Description
    Collection

    Any number of settings assets of this type may coexist by design — one per configured item. Finding more than one is the normal shape, not an ambiguity.

    Singleton

    Exactly one settings asset of this type belongs in a project. Finding more than one is an ambiguity SerenityInstallableSystemAttribute's resolver reports as invalid.

    In this article
    © 2026 Serenity. All Rights Reserved