diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-26 18:27:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-26 18:27:22 +0200 |
commit | 9c7673253f7dcc50d761345c3fdcd0d6d3654f3e (patch) | |
tree | 4a2c8c036f16e97c22767303a20d5be34635ef70 /server/protocol | |
parent | eb6527dec240c94d8cd27573c96c83cea2618cb3 (diff) | |
download | hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar.bz2 hurrycurry-9c7673253f7dcc50d761345c3fdcd0d6d3654f3e.tar.zst |
add draft weather/environment system
Diffstat (limited to 'server/protocol')
-rw-r--r-- | server/protocol/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index f4513641..2fcc5598 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -231,9 +231,9 @@ pub struct Score { #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Default)] pub struct Environment { - rain: f64, // 0-1; clear..raining - wind: f64, // 0-1; still..stormy - time: f64, // 0-1; night..morning..noon..evening + pub rain: f32, // 0-1; clear..raining + pub wind: f32, // 0-1; still..stormy + pub time: f32, // 0-1; night..morning..noon..evening } #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Copy, PartialEq, Eq, Hash)] |