From 0f94e292bde8b9614aa48a6ba87f1a8d927b8133 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 13 Aug 2024 14:50:10 +0200 Subject: replace customers with bots and refactor some more server code. --- server/bot/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/bot/src/lib.rs') diff --git a/server/bot/src/lib.rs b/server/bot/src/lib.rs index 385e2334..543a1062 100644 --- a/server/bot/src/lib.rs +++ b/server/bot/src/lib.rs @@ -30,7 +30,10 @@ pub struct BotInput { pub direction: Vec2, pub boost: bool, pub interact: Option, + pub leave: bool, } + +pub type DynBotAlgo = Box; pub trait BotAlgo { fn tick(&mut self, me: PlayerID, game: &Game, dt: f32) -> BotInput; } -- cgit v1.2.3-70-g09d2