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
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 |