❤️ Health — UI¶
📦 Folder Overview¶
This folder represents the UI layer of the Health system.
It contains optional connectors and helpers for binding Health data to UI elements.
🎯 Purpose¶
The UI layer exists to:
- Display health state
- Bind UI elements to Health interfaces
- Provide quick visualisation
It is decoupled from gameplay logic.
🧩 What Lives Here¶
Connectors¶
UI binding components (for example, health bars).
See:
UI/Connectors/README.md
⚠️ Important Notes¶
Boundaries¶
This layer is:
- Read-only
- Interface-driven (
IHealthReadonly) - Optional and replaceable
This layer is not:
- A gameplay system
- A mutation layer
- A rules or effects system
- A required dependency
🧠 Usage Guidance¶
UI should depend on:
IHealthReadonly-
Optional events:
-
Damaged HealedHealthChangedMaxChanged
Avoid:
- Direct field access
- Coupling to
HealthSysteminternals
🚫 Not for Production Use¶
This folder is not required for gameplay and may be removed or replaced.
🔗 Related Documentation¶
- UI Connectors
- Health System
- Abstractions
- Rules