extern crate self as bevy;
use bevy_commandify::*;
use bevy_ecs::prelude::*;
use bevy_ecs::system::CommandQueue;
#[command(ecs = bevy_ecs)]
fn foo(_world: &mut World) {}
#[entity_command(bevy_ecs)]
fn bar(_world: &mut World, _entity: Entity) {}
#[test]
fn ecs_name() {
let mut world = World::new();
let mut queue = CommandQueue::default();
let mut commands = Commands::new(&mut queue, &mut world);
commands.foo();
commands.spawn_empty().bar();
world.foo();
world.spawn_empty().bar();
queue.apply(&mut world);
}