From f993e79a7e6acc7aadd1e6cf9462d7a3e2c3ac3e Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 17 Jun 2022 20:46:16 -0500 Subject: Create azalea-entity --- azalea-client/Cargo.toml | 1 + azalea-client/src/entity.rs | 8 -------- azalea-client/src/lib.rs | 2 -- azalea-client/src/player.rs | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 azalea-client/src/entity.rs (limited to 'azalea-client') diff --git a/azalea-client/Cargo.toml b/azalea-client/Cargo.toml index 1156f8de..cc34f03a 100755 --- a/azalea-client/Cargo.toml +++ b/azalea-client/Cargo.toml @@ -9,6 +9,7 @@ version = "0.1.0" azalea-auth = {path = "../azalea-auth"} azalea-core = {path = "../azalea-core"} azalea-crypto = {path = "../azalea-crypto"} +azalea-entity = {path = "../azalea-entity"} azalea-protocol = {path = "../azalea-protocol"} azalea-world = {path = "../azalea-world"} tokio = {version = "1.18.0", features = ["sync"]} diff --git a/azalea-client/src/entity.rs b/azalea-client/src/entity.rs deleted file mode 100644 index d91f556f..00000000 --- a/azalea-client/src/entity.rs +++ /dev/null @@ -1,8 +0,0 @@ -use azalea_core::EntityPos; - -#[derive(Default, Debug)] -pub struct Entity { - /// The incremental numerical id of the entity. - pub id: u32, - pub pos: EntityPos, -} diff --git a/azalea-client/src/lib.rs b/azalea-client/src/lib.rs index 5814687a..db935897 100755 --- a/azalea-client/src/lib.rs +++ b/azalea-client/src/lib.rs @@ -1,12 +1,10 @@ //! Significantly abstract azalea-protocol so it's actually useable for bots. mod connect; -mod entity; pub mod ping; mod player; pub use connect::{Account, Client, Event}; -pub use entity::Entity; pub use player::Player; #[cfg(test)] diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs index 04d34f6d..9a5ba8ab 100644 --- a/azalea-client/src/player.rs +++ b/azalea-client/src/player.rs @@ -1,4 +1,4 @@ -use crate::Entity; +use azalea_entity::Entity; #[derive(Default, Debug)] pub struct Player { -- cgit v1.2.3