Add editor operator lifecycle bridge
CI / Format, lint, test, build (push) Waiting to run

This commit is contained in:
Rbanh committed 2026-06-06 04:07:58 -04:00
1 parent 2054fa2558
commit d77cc6a40e
8 files changed
+447 -8

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ Docs for the in-process egui editor (`crates/editor/`). Update this index when a
| `history/` | Undo/redo command stack | README controls |
| `crates/scene` | Schema stamp/migrate/validate (shared) | ADR 0006, ADR 0008 |
| `ext/extensibility.rs` | Command registry, `ActorInspectorSection`, palette | Phase 6 |
| `operators.rs` | Operator lifecycle/status bridge for commands and future modal tools | BS-JD-004 |
| `ext/game_inspector.rs` | Game-registered inspector sections | Phase 6 |
## Design intentions (stable)
+5
View File
@@ -29,6 +29,7 @@ Native-only dependencies (`rfd`, BRP HTTP) stay in `editor`. `settings`, `shared
| `ActorIconsPlugin` | Selectable actor root billboard icons |
| `EditorVisualizersPlugin` | Collider/light/spawn/prefab/runtime visualizers and selectable proxies |
| `SceneIoPlugin` | Level New/Open/Save, recent paths |
| `OperatorPlugin` | Active operator lifecycle/status for commands and modal tools |
| `SettingsUiPlugin` | egui Project Settings panel |
| `EditorUiPlugin` | Dock, themed egui shell, viewport overlays, menus, status bar |
| `BrpPlugin` | Bevy Remote Protocol HTTP (editor-only) |
@@ -160,6 +161,10 @@ On play enter/exit the editor snapshots **player sim state only** (transform, ve
## Undo / history
Structural edits (spawn, delete, transform, rename) go through `EditorHistory` command objects in `history.rs`.
User-facing actions route through the operator lifecycle in `operators.rs`: begin, preview,
commit, cancel, disabled reason, and status text. The first bridge wraps command-palette and queued
editor commands as immediate operators, while existing `EditorHistory` commands remain the undo
payload. Modal tools and asset drops should use the same operator status path as they migrate.
PIE stop restores player simulation state only; authored `LevelObject` edits made during PIE remain in the scene.