diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-08 17:16:06 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-08 17:16:06 +0200 | 
| commit | 70bb8744cd742dc6c8a71ab174e4a1b058c7bec8 (patch) | |
| tree | 78c5a190856f1c6281e8773a05408ede02a13947 /server/src/customer | |
| parent | a1921104e13c9cf39439ee424d54f7cece67fc5b (diff) | |
| download | hurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar hurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar.bz2 hurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar.zst  | |
split off protocol into its own crate
Diffstat (limited to 'server/src/customer')
| -rw-r--r-- | server/src/customer/mod.rs | 7 | ||||
| -rw-r--r-- | server/src/customer/movement.rs | 2 | ||||
| -rw-r--r-- | server/src/customer/pathfinding.rs | 2 | 
3 files changed, 4 insertions, 7 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs index 191f9e3b..c11a1aec 100644 --- a/server/src/customer/mod.rs +++ b/server/src/customer/mod.rs @@ -18,14 +18,11 @@  pub mod movement;  mod pathfinding; -use crate::{ -    data::Gamedata, -    game::Tile, -    protocol::{DemandIndex, Message, PacketS, PlayerID}, -}; +use crate::{data::Gamedata, game::Tile};  use anyhow::{anyhow, Result};  use fake::{faker, Fake};  use glam::IVec2; +use hurrycurry_protocol::{DemandIndex, Message, PacketS, PlayerID};  use log::debug;  use movement::MovementBase;  use pathfinding::{find_path, Path}; diff --git a/server/src/customer/movement.rs b/server/src/customer/movement.rs index ca7afdbe..4da76de7 100644 --- a/server/src/customer/movement.rs +++ b/server/src/customer/movement.rs @@ -16,8 +16,8 @@      along with this program.  If not, see <https://www.gnu.org/licenses/>.  */ -use crate::protocol::PacketS;  use glam::{IVec2, Vec2}; +use hurrycurry_protocol::PacketS;  use std::collections::HashSet;  const PLAYER_SIZE: f32 = 0.4; diff --git a/server/src/customer/pathfinding.rs b/server/src/customer/pathfinding.rs index 743515b9..a2623e5c 100644 --- a/server/src/customer/pathfinding.rs +++ b/server/src/customer/pathfinding.rs @@ -16,8 +16,8 @@  */  use super::movement::MovementBase; -use crate::protocol::PacketS;  use glam::{IVec2, Vec2}; +use hurrycurry_protocol::PacketS;  use log::debug;  use std::{      cmp::Ordering,  |