use beet_ecs::prelude::*; use bevy::prelude::*; #[derive(Component, Action)] #[systems(log_on_run)] #[category(ActionCategory::Agent)] struct LogOnRun(pub String); fn log_on_run(query: Query<&LogOnRun, Added>) { let name = &query.single().0; println!("log_on_run: {name}"); } fn main() { let mut world = World::new(); world.spawn((Running, LogOnRun("root".to_string()))); }