pub fn create_industry(
commands: &mut Commands,
meshes: &mut ResMut<Assets<Mesh>>,
materials: &mut ResMut<Assets<ColorMaterial>>,
industry: &IndustryTypes,
amount: u32,
god: Entity,
) {
commands.spawn((
MaterialMesh2dBundle {
mesh: Mesh2dHandle(meshes.add(Annulus::new(15.0, 30.0))),
material: materials.add(Color::hsl(1.0, 0.95, 0.7)),
transform: Transform::from_xyz(0.0, 0.0, 0.0),
..default()
},
Text2dBundle {
text: Text::from_section("Copper Mine", TextStyle::default()),
..default()
},
));
Encountered a panic when applying buffers for system `civilizace::generate::antropocene::industry_created`!
2024-07-05T22:00:43.198320Z WARN bevy_ecs::world::command_queue: CommandQueue has un-applied commands being dropped.
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!