From 231a5ce21fcee9195fcc504ee672e4464d627c47 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 19 Oct 2025 20:21:27 +0200 Subject: Rename client-lib crate to game-core --- server/bot/Cargo.toml | 2 +- server/bot/src/algos/customer.rs | 2 +- server/bot/src/algos/dishwasher.rs | 2 +- server/bot/src/algos/frank.rs | 2 +- server/bot/src/algos/simple.rs | 2 +- server/bot/src/algos/test.rs | 2 +- server/bot/src/algos/waiter.rs | 2 +- server/bot/src/lib.rs | 2 +- server/bot/src/main.rs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'server/bot') 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}; -- cgit v1.3