Add other machine placeholder sprites

This commit is contained in:
2025-08-27 13:47:01 -05:00
parent 0c254b2ed0
commit c7fd053fd1

View File

@@ -47,7 +47,7 @@ fn dummy_machines(mut commands: Commands) {
commands
.spawn((
Sprite::from_color(RED, Vec2::splat(40.0)),
Transform::default(),
Transform::from_translation(Vec3::new(-40.0, 40.0, 0.0)),
Pickable::default(),
))
.observe(spawn_machine_ui::<CuttingMachine>);
@@ -55,12 +55,23 @@ fn dummy_machines(mut commands: Commands) {
commands
.spawn((
Sprite::from_color(GREEN, Vec2::splat(40.0)),
Transform::from_translation(Vec3::new(80.0, 0.0, 0.0)),
Transform::from_translation(Vec3::new(40.0, 40.0, 0.0)),
Pickable::default(),
))
.observe(spawn_machine_ui::<RotatingMachine>);
// TODO: The other machines, once they have a spawner struct & impl.
// TODO: The other observers, once they have a spawner struct & impl.
commands.spawn((
Sprite::from_color(PURPLE, Vec2::splat(40.)),
Transform::from_translation(Vec3::new(-40.0, -40.0, 0.0)),
Pickable::default(),
));
commands.spawn((
Sprite::from_color(DARK_ORANGE, Vec2::splat(40.)),
Transform::from_translation(Vec3::new(40.0, -40.0, 0.0)),
Pickable::default(),
));
}
fn spawn_machine_ui<M: SpawnUi>(