HasAttributes

interface HasAttributes

Capability: exposes a set of numeric attributes (health, mana, etc.).

Design note

We avoid hardcoding a full stat system; attributes are resolved by Key.

Functions

Link copied to clipboard
abstract fun attribute(key: Key): Attribute?

Returns an attribute by key, or null if not supported.

Link copied to clipboard
abstract fun attributes(): List<Key>

Returns supported attribute keys (best-effort).