diff options
Diffstat (limited to 'server/src/customer')
-rw-r--r-- | server/src/customer/mod.rs | 8 | ||||
-rw-r--r-- | server/src/customer/movement.rs | 3 | ||||
-rw-r--r-- | server/src/customer/pathfinding.rs | 6 |
3 files changed, 7 insertions, 10 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs index 191f9e3b..10788206 100644 --- a/server/src/customer/mod.rs +++ b/server/src/customer/mod.rs @@ -18,14 +18,10 @@ 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::{glam::IVec2, 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..34ed5b16 100644 --- a/server/src/customer/movement.rs +++ b/server/src/customer/movement.rs @@ -16,8 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -use crate::protocol::PacketS; -use glam::{IVec2, Vec2}; +use hurrycurry_protocol::{glam::{IVec2, Vec2}, 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..29ee4e00 100644 --- a/server/src/customer/pathfinding.rs +++ b/server/src/customer/pathfinding.rs @@ -16,8 +16,10 @@ */ use super::movement::MovementBase; -use crate::protocol::PacketS; -use glam::{IVec2, Vec2}; +use hurrycurry_protocol::{ + glam::{IVec2, Vec2}, + PacketS, +}; use log::debug; use std::{ cmp::Ordering, |