cargo fmt
This commit is contained in:
parent
3836e56b29
commit
166ca17f5e
5
build.rs
5
build.rs
|
@ -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");
|
||||
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(())
|
||||
|
|
10
src/audio.rs
10
src/audio.rs
|
@ -53,11 +53,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
|
|||
Sfx::BGMActualJupiterRecording,
|
||||
"music/JupiterRecording.ogg",
|
||||
),
|
||||
(
|
||||
SfxType::Radio,
|
||||
Sfx::BGMOutrun,
|
||||
"music/Outrun.ogg",
|
||||
),
|
||||
(SfxType::Radio, Sfx::BGMOutrun, "music/Outrun.ogg"),
|
||||
(
|
||||
SfxType::LoopSfx,
|
||||
Sfx::ElectricMotor,
|
||||
|
@ -93,9 +89,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
|
|||
(SfxType::OneOff, Sfx::Zoom, "sounds/zoom.ogg"),
|
||||
];
|
||||
|
||||
const RADIO_VOLUMES: &[(Sfx, f32)] = &[
|
||||
(Sfx::BGMOutrun, 0.3)
|
||||
];
|
||||
const RADIO_VOLUMES: &[(Sfx, f32)] = &[(Sfx::BGMOutrun, 0.3)];
|
||||
|
||||
#[derive(Component, PartialEq, Hash, Eq, Copy, Clone)]
|
||||
pub enum Sfx {
|
||||
|
|
Loading…
Reference in a new issue