diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-17 20:55:11 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-17 20:55:11 +0100 |
commit | 0315b90767ccbaa1dcde11d450976f1dc0c928ba (patch) | |
tree | 0b9076eb1c41f9ee2e1c9b1b0b2cb85470ff9ce1 /shared/src/resources.rs | |
parent | 21010f56397812caad29399daa737e00295cb55c (diff) | |
download | weareserver-0315b90767ccbaa1dcde11d450976f1dc0c928ba.tar weareserver-0315b90767ccbaa1dcde11d450976f1dc0c928ba.tar.bz2 weareserver-0315b90767ccbaa1dcde11d450976f1dc0c928ba.tar.zst |
volume hint in res
Diffstat (limited to 'shared/src/resources.rs')
-rw-r--r-- | shared/src/resources.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shared/src/resources.rs b/shared/src/resources.rs index 66ecf7a..76e52f8 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -86,8 +86,9 @@ pub struct MeshPart { pub tex_thickness: Option<Resource<Image<'static>>>, pub tex_occlusion: Option<Resource<Image<'static>>>, pub hint_mirror: Option<()>, - pub hint_static: Option<()>, pub hint_hide_first_person: Option<()>, + pub hint_static: Option<()>, + pub hint_volume: Option<()>, } #[derive(Debug, Default, Clone)] @@ -303,8 +304,9 @@ impl ReadWrite for MeshPart { write_kv_opt(w, b"tex_emission", &self.tex_emission)?; write_kv_opt(w, b"tex_occlusion", &self.tex_occlusion)?; write_kv_opt(w, b"hint_mirror", &self.hint_mirror)?; - write_kv_opt(w, b"hint_static", &self.hint_static)?; write_kv_opt(w, b"hint_hide_first_person", &self.hint_hide_first_person)?; + write_kv_opt(w, b"hint_static", &self.hint_static)?; + write_kv_opt(w, b"hint_volume", &self.hint_volume)?; Ok(()) } fn read(r: &mut dyn Read) -> Result<Self> { @@ -342,8 +344,9 @@ impl ReadWrite for MeshPart { b"tex_emission" => Ok(s.tex_emission = Some(read_slice(v)?)), b"tex_occlusion" => Ok(s.tex_occlusion = Some(read_slice(v)?)), b"hint_mirror" => Ok(s.hint_mirror = Some(read_slice(v)?)), - b"hint_static" => Ok(s.hint_static = Some(read_slice(v)?)), b"hint_hide_first_person" => Ok(s.hint_hide_first_person = Some(read_slice(v)?)), + b"hint_static" => Ok(s.hint_static = Some(read_slice(v)?)), + b"hint_volume" => Ok(s.hint_volume = Some(read_slice(v)?)), x => Ok(warn!( "unknown mesh part key: {:?}", String::from_utf8_lossy(x) |