aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-08 17:16:06 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-08 17:16:06 +0200
commit70bb8744cd742dc6c8a71ab174e4a1b058c7bec8 (patch)
tree78c5a190856f1c6281e8773a05408ede02a13947 /server/src/entity
parenta1921104e13c9cf39439ee424d54f7cece67fc5b (diff)
downloadhurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar
hurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar.bz2
hurrycurry-70bb8744cd742dc6c8a71ab174e4a1b058c7bec8.tar.zst
split off protocol into its own crate
Diffstat (limited to 'server/src/entity')
-rw-r--r--server/src/entity/conveyor.rs2
-rw-r--r--server/src/entity/mod.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/src/entity/conveyor.rs b/server/src/entity/conveyor.rs
index 0a73b55c..f4692f6d 100644
--- a/server/src/entity/conveyor.rs
+++ b/server/src/entity/conveyor.rs
@@ -19,10 +19,10 @@ use super::EntityT;
use crate::{
data::Gamedata,
game::{interact_effect, Tile},
- protocol::{ItemLocation, PacketC},
};
use anyhow::{anyhow, Result};
use glam::IVec2;
+use hurrycurry_protocol::{ItemLocation, PacketC};
use std::collections::{HashMap, VecDeque};
#[derive(Debug, Default, Clone)]
diff --git a/server/src/entity/mod.rs b/server/src/entity/mod.rs
index 5cb3ed0f..1bc558b1 100644
--- a/server/src/entity/mod.rs
+++ b/server/src/entity/mod.rs
@@ -16,10 +16,11 @@
*/
pub mod conveyor;
-use crate::{data::Gamedata, game::Tile, protocol::PacketC};
+use crate::{data::Gamedata, game::Tile};
use anyhow::{anyhow, Result};
use conveyor::Conveyor;
use glam::IVec2;
+use hurrycurry_protocol::PacketC;
use serde::{Deserialize, Serialize};
use std::collections::{HashMap, VecDeque};