Blacksite/docs/adr/0007-editor-plugin-extensibility.md
Rbanh f29712d158
Some checks are pending
CI / Format, lint, test, build (push) Waiting to run
Initial project import
2026-06-05 21:44:45 -04:00

593 B

ADR 0007: EditorPlugin Extensibility

Status

Accepted

Context

Game-specific UI (weapons panel, net HUD) must not grow crates/editor/src/ui/mod.rs indefinitely (M6 / H5).

Decision

  • Formalize EditorPlugin and EditorCommand traits in extensibility.rs.
  • Game crates register plugins at startup via register_editor_plugin.
  • Command palette and BRP dispatch through named command ids (play.toggle, etc.).

Consequences

  • Third-party panels register without forking core editor UI.
  • Command registry remains the single invocation surface for palette + automation.