Blacksite/crates/editor/src/ext/command_queue.rs
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

16 lines
340 B
Rust

//! Deferred editor command execution (palette, BRP bridge).
use bevy::prelude::*;
#[derive(Resource, Default)]
pub struct PendingEditorCommands {
pub queue: Vec<String>,
}
pub fn queue_editor_command(world: &mut World, name: String) {
world
.resource_mut::<PendingEditorCommands>()
.queue
.push(name);
}