Interface ICharacterConfig
Application-layer contract for character archetype configuration data. Defines the data required by the application flow (presenter, spawn service, etc.) without coupling to Unity serialization concerns. Infrastructure implementations (e.g., ScriptableObjects) implement this interface.
Namespace: Serenity.Character.Application.Interfaces.Configuration
Assembly: Serenity.Character.Application.dll
Syntax
public interface ICharacterConfig
Properties
MaxHealth
Maximum hit points before death. Must be >= 1.
Declaration
int MaxHealth { get; }
Property Value
| Type | Description |
|---|---|
| int |
MoveSpeed
Movement speed (units/second).
Declaration
float MoveSpeed { get; }
Property Value
| Type | Description |
|---|---|
| float |
Name
The name of the character.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToConfig()
Converts this ScriptableObject to the corresponding Business configuration model. Unity-only fields (Prefab, DeathWindowSeconds) are not mapped.
Declaration
CharacterConfig ToConfig()
Returns
| Type | Description |
|---|---|
| CharacterConfig | An immutable CharacterArchetypeConfig value. |