summaryrefslogtreecommitdiff
path: root/server/bot/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-23 15:37:11 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-23 15:37:11 +0100
commit1a9f7e9a20bff0fbc854454f131d4bc546e73e72 (patch)
tree7be16db47cd819177ae73d42af7b59c37593060a /server/bot/src/main.rs
parentbd71cd120fa4d8caf4987fd9c76838ccbeec19f7 (diff)
downloadhurrycurry-1a9f7e9a20bff0fbc854454f131d4bc546e73e72.tar
hurrycurry-1a9f7e9a20bff0fbc854454f131d4bc546e73e72.tar.bz2
hurrycurry-1a9f7e9a20bff0fbc854454f131d4bc546e73e72.tar.zst
two-handed server
Diffstat (limited to 'server/bot/src/main.rs')
-rw-r--r--server/bot/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs
index 61ae1c1c..0ffbf4b6 100644
--- a/server/bot/src/main.rs
+++ b/server/bot/src/main.rs
@@ -19,7 +19,7 @@ use anyhow::Result;
use clap::Parser;
use hurrycurry_bot::{algos::ALGO_CONSTRUCTORS, BotAlgo, BotInput};
use hurrycurry_client_lib::{network::sync::Network, Game};
-use hurrycurry_protocol::{PacketC, PacketS, PlayerClass, PlayerID};
+use hurrycurry_protocol::{Hand, PacketC, PacketS, PlayerClass, PlayerID};
use log::warn;
use std::{thread::sleep, time::Duration};
@@ -109,6 +109,7 @@ fn main() -> Result<()> {
network.queue_out.push_back(PacketS::Interact {
player: b.id,
pos: interact,
+ hand: Hand::Left,
})
}
network.queue_out.push_back(PacketS::Movement {