cargo fmt

This commit is contained in:
yuni 2024-11-17 18:19:47 +01:00
parent 3836e56b29
commit 166ca17f5e
2 changed files with 6 additions and 9 deletions

View file

@ -67,7 +67,10 @@ fn extract_scene(file: &mut File, scene_name: &str, blend_file: &str) -> std::io
}; };
let name = obj.get("id").get_string("name"); let name = obj.get("id").get_string("name");
if let Some(name) = get_scene_object_name(name.as_str()) { if let Some(name) = get_scene_object_name(name.as_str()) {
write!(file, "({scene_name:?}, {name:?}, {loc:?}, {rot:?}, {scale:?}),\n")?; write!(
file,
"({scene_name:?}, {name:?}, {loc:?}, {rot:?}, {scale:?}),\n"
)?;
} }
} }
Ok(()) Ok(())

View file

@ -53,11 +53,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
Sfx::BGMActualJupiterRecording, Sfx::BGMActualJupiterRecording,
"music/JupiterRecording.ogg", "music/JupiterRecording.ogg",
), ),
( (SfxType::Radio, Sfx::BGMOutrun, "music/Outrun.ogg"),
SfxType::Radio,
Sfx::BGMOutrun,
"music/Outrun.ogg",
),
( (
SfxType::LoopSfx, SfxType::LoopSfx,
Sfx::ElectricMotor, Sfx::ElectricMotor,
@ -93,9 +89,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
(SfxType::OneOff, Sfx::Zoom, "sounds/zoom.ogg"), (SfxType::OneOff, Sfx::Zoom, "sounds/zoom.ogg"),
]; ];
const RADIO_VOLUMES: &[(Sfx, f32)] = &[ const RADIO_VOLUMES: &[(Sfx, f32)] = &[(Sfx::BGMOutrun, 0.3)];
(Sfx::BGMOutrun, 0.3)
];
#[derive(Component, PartialEq, Hash, Eq, Copy, Clone)] #[derive(Component, PartialEq, Hash, Eq, Copy, Clone)]
pub enum Sfx { pub enum Sfx {