From e0bcab53b8a3721a008e47062c6b5972fa64b8ad Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 2 Oct 2022 15:02:27 -0500 Subject: start adding stuff to azalea crate --- azalea/src/bot.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 azalea/src/bot.rs (limited to 'azalea/src/bot.rs') diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs new file mode 100644 index 00000000..6746e09e --- /dev/null +++ b/azalea/src/bot.rs @@ -0,0 +1,14 @@ +pub struct BotState { + jumping_once: bool, +} + +pub trait BotTrait { + fn jump(&mut self); +} + +impl BotTrait for azalea_client::Client { + fn jump(&mut self) { + let mut physics_state = self.physics_state.lock().unwrap(); + physics_state.jumping_once = true; + } +} -- cgit v1.2.3