From 9c7673253f7dcc50d761345c3fdcd0d6d3654f3e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 26 Jul 2024 18:27:18 +0200 Subject: add draft weather/environment system --- server/protocol/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/protocol/src') 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)] -- cgit v1.2.3-70-g09d2