diff options
Diffstat (limited to 'server')
| -rw-r--r-- | server/protocol/src/lib.rs | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index fcccb107..f4513641 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -203,6 +203,7 @@ pub enum PacketC {      },      Menu(Menu),      MovementSync, +    UpdateEnvironment(Environment),      /// For use in replay sessions only      ReplayStart, @@ -228,6 +229,13 @@ pub struct Score {      pub instant_recipes: usize,  } +#[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 +} +  #[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, Copy, PartialEq, Eq, Hash)]  #[serde(rename_all = "snake_case")]  pub enum ItemLocation {  |