21 lines
593 B
Markdown
21 lines
593 B
Markdown
# 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.
|