diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-13 16:03:19 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-13 16:03:38 +0200 |
commit | 8d83fcef94ce1558a2c0e29e8be6c966c7e10a5b (patch) | |
tree | f674b2ea255a5d80ef7ee320e313a02a9a72bc4b /server/bot/src/lib.rs | |
parent | 0f94e292bde8b9614aa48a6ba87f1a8d927b8133 (diff) | |
download | hurrycurry-8d83fcef94ce1558a2c0e29e8be6c966c7e10a5b.tar hurrycurry-8d83fcef94ce1558a2c0e29e8be6c966c7e10a5b.tar.bz2 hurrycurry-8d83fcef94ce1558a2c0e29e8be6c966c7e10a5b.tar.zst |
trying to reimplement customers
Diffstat (limited to 'server/bot/src/lib.rs')
-rw-r--r-- | server/bot/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/bot/src/lib.rs b/server/bot/src/lib.rs index 543a1062..b2334333 100644 --- a/server/bot/src/lib.rs +++ b/server/bot/src/lib.rs @@ -22,15 +22,16 @@ pub mod pathfinding; use hurrycurry_client_lib::Game; use hurrycurry_protocol::{ glam::{IVec2, Vec2}, - PlayerID, + PacketS, PlayerID, }; -#[derive(Default, Clone, Copy)] +#[derive(Default, Clone)] pub struct BotInput { pub direction: Vec2, pub boost: bool, pub interact: Option<IVec2>, pub leave: bool, + pub extra: Vec<PacketS>, } pub type DynBotAlgo = Box<dyn BotAlgo + Send + Sync + 'static>; |