diff options
Diffstat (limited to 'azalea-entity')
| -rw-r--r-- | azalea-entity/Cargo.toml | 9 | ||||
| -rw-r--r-- | azalea-entity/src/lib.rs | 17 |
2 files changed, 26 insertions, 0 deletions
diff --git a/azalea-entity/Cargo.toml b/azalea-entity/Cargo.toml new file mode 100644 index 00000000..bf1e64bc --- /dev/null +++ b/azalea-entity/Cargo.toml @@ -0,0 +1,9 @@ +[package] +edition = "2021" +name = "azalea-entity" +version = "0.1.0" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +azalea-core = {path = "../azalea-core"} diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs new file mode 100644 index 00000000..506f5780 --- /dev/null +++ b/azalea-entity/src/lib.rs @@ -0,0 +1,17 @@ +use azalea_core::EntityPos; + +#[derive(Default, Debug)] +pub struct Entity { + /// The incrementing numerical id of the entity. + pub id: u32, + pub pos: EntityPos, +} + +// #[cfg(test)] +// mod tests { +// #[test] +// fn it_works() { +// let result = 2 + 2; +// assert_eq!(result, 4); +// } +// } |
