Skip to content

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

  • Healed
  • HealthChanged
  • MaxChanged

Avoid:

  • Direct field access
  • Coupling to HealthSystem internals

Not for Production Use

This folder is not required for gameplay and may be removed or replaced


  • UI Connectors
  • Health System
  • Abstractions
  • Rules