aboutsummaryrefslogtreecommitdiff
path: root/server/bot
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-19 20:21:27 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-19 20:21:27 +0200
commit231a5ce21fcee9195fcc504ee672e4464d627c47 (patch)
tree5d26373c2dbdaa3a4c7dfb6d2dc4e0fb63ca47a1 /server/bot
parent239f139e7cdc2ee9f2658a8038d2870293e20aa4 (diff)
downloadhurrycurry-231a5ce21fcee9195fcc504ee672e4464d627c47.tar
hurrycurry-231a5ce21fcee9195fcc504ee672e4464d627c47.tar.bz2
hurrycurry-231a5ce21fcee9195fcc504ee672e4464d627c47.tar.zst
Rename client-lib crate to game-core
Diffstat (limited to 'server/bot')
-rw-r--r--server/bot/Cargo.toml2
-rw-r--r--server/bot/src/algos/customer.rs2
-rw-r--r--server/bot/src/algos/dishwasher.rs2
-rw-r--r--server/bot/src/algos/frank.rs2
-rw-r--r--server/bot/src/algos/simple.rs2
-rw-r--r--server/bot/src/algos/test.rs2
-rw-r--r--server/bot/src/algos/waiter.rs2
-rw-r--r--server/bot/src/lib.rs2
-rw-r--r--server/bot/src/main.rs2
9 files changed, 9 insertions, 9 deletions
diff --git a/server/bot/Cargo.toml b/server/bot/Cargo.toml
index c8717986..ad63f709 100644
--- a/server/bot/Cargo.toml
+++ b/server/bot/Cargo.toml
@@ -4,7 +4,7 @@ version = "3.0.0"
edition = "2024"
[dependencies]
-hurrycurry-client-lib = { path = "../client-lib", features = ["tokio-network"] }
+hurrycurry-game-core = { path = "../game-core", features = ["tokio-network"] }
hurrycurry-protocol = { path = "../protocol" }
log = "0.4.28"
anyhow = "1.0.99"
diff --git a/server/bot/src/algos/customer.rs b/server/bot/src/algos/customer.rs
index bd757d9e..06dc373c 100644
--- a/server/bot/src/algos/customer.rs
+++ b/server/bot/src/algos/customer.rs
@@ -22,7 +22,7 @@ use crate::{
pathfinding::{Path, find_path},
random_float,
};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{
DemandIndex, Hand, ItemLocation, Message, PacketS, PlayerClass, PlayerID, Score,
glam::{IVec2, Vec2},
diff --git a/server/bot/src/algos/dishwasher.rs b/server/bot/src/algos/dishwasher.rs
index 94368558..5dbf954f 100644
--- a/server/bot/src/algos/dishwasher.rs
+++ b/server/bot/src/algos/dishwasher.rs
@@ -17,7 +17,7 @@
*/
use super::simple::State;
use crate::{BotAlgo, BotInput, algos::simple::Context, pathfinding::Path};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{ItemIndex, PlayerID, glam::IVec2};
#[derive(Default)]
diff --git a/server/bot/src/algos/frank.rs b/server/bot/src/algos/frank.rs
index c815c75f..3515f96d 100644
--- a/server/bot/src/algos/frank.rs
+++ b/server/bot/src/algos/frank.rs
@@ -21,7 +21,7 @@ use crate::{
BotAlgo, BotInput,
pathfinding::{Path, find_path_to_neighbour},
};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{Message, PacketS, PlayerClass, PlayerID, glam::Vec2};
#[derive(Default)]
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs
index f8d01b3a..0145cfcb 100644
--- a/server/bot/src/algos/simple.rs
+++ b/server/bot/src/algos/simple.rs
@@ -19,7 +19,7 @@ use crate::{
BotAlgo, BotInput,
pathfinding::{Path, find_path_to_neighbour},
};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{
ItemIndex, Message, PlayerID, Recipe, RecipeIndex, TileIndex, glam::IVec2,
};
diff --git a/server/bot/src/algos/test.rs b/server/bot/src/algos/test.rs
index 361cf4ea..20abbabd 100644
--- a/server/bot/src/algos/test.rs
+++ b/server/bot/src/algos/test.rs
@@ -19,7 +19,7 @@ use crate::{
BotAlgo, BotInput,
pathfinding::{Path, find_path_to_neighbour},
};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{ItemIndex, Message, PlayerID, glam::IVec2};
use log::info;
diff --git a/server/bot/src/algos/waiter.rs b/server/bot/src/algos/waiter.rs
index 8fccd34a..9273eb42 100644
--- a/server/bot/src/algos/waiter.rs
+++ b/server/bot/src/algos/waiter.rs
@@ -17,7 +17,7 @@
*/
use super::simple::State;
use crate::{BotAlgo, BotInput, algos::simple::Context, pathfinding::Path};
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{ItemIndex, PlayerID, glam::IVec2};
use log::debug;
diff --git a/server/bot/src/lib.rs b/server/bot/src/lib.rs
index 927ac7b0..a3889021 100644
--- a/server/bot/src/lib.rs
+++ b/server/bot/src/lib.rs
@@ -19,7 +19,7 @@
pub mod algos;
pub mod pathfinding;
-use hurrycurry_client_lib::Game;
+use hurrycurry_game_core::Game;
use hurrycurry_protocol::{
PacketS, PlayerID,
glam::{IVec2, Vec2},
diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs
index 22dc2e3f..2fbf274f 100644
--- a/server/bot/src/main.rs
+++ b/server/bot/src/main.rs
@@ -18,7 +18,7 @@
use anyhow::Result;
use clap::Parser;
use hurrycurry_bot::{BotAlgo, BotInput, algos::ALGO_CONSTRUCTORS};
-use hurrycurry_client_lib::{Game, network::sync::Network};
+use hurrycurry_game_core::{Game, network::sync::Network};
use hurrycurry_protocol::{Character, Hand, ItemLocation, PacketC, PacketS, PlayerClass, PlayerID};
use log::warn;
use std::{thread::sleep, time::Duration};