diff options
| author | mat <github@matdoes.dev> | 2022-06-17 20:46:16 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-17 20:46:16 -0500 |
| commit | f993e79a7e6acc7aadd1e6cf9462d7a3e2c3ac3e (patch) | |
| tree | 43968ba301274358a74399a5ed3d73f5204e7046 /azalea-client | |
| parent | fcdb6d31eeb93887caae104724b230196a0fc5bc (diff) | |
| download | azalea-drasl-f993e79a7e6acc7aadd1e6cf9462d7a3e2c3ac3e.tar.xz | |
Create azalea-entity
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/Cargo.toml | 1 | ||||
| -rw-r--r-- | azalea-client/src/entity.rs | 8 | ||||
| -rwxr-xr-x | azalea-client/src/lib.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/player.rs | 2 |
4 files changed, 2 insertions, 11 deletions
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 { |
