logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct CharacterConfig

    Immutable configuration for a single character archetype. Defines hit points, attack timing, miss probability, hit buffer cost, and archetype-specific modifiers (Orange bonus time, death-window hits). Pure C# — no engine dependencies.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Character.Domain.Configuration
    Assembly: Serenity.Character.Domain.dll
    Syntax
    public readonly struct CharacterConfig

    Constructors

    CharacterConfig(int)

    Creates a new CharacterArchetypeConfig with validation.

    Declaration
    public CharacterConfig(int maxHealth)
    Parameters
    Type Name Description
    int maxHealth

    Hit points. Must be >= 1.

    Fields

    MaxHealth

    Maximum hit points before death. Must be >= 1.

    Declaration
    public readonly int MaxHealth
    Field Value
    Type Description
    int

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved