feat(shared): derive serde on EntityPos

This commit is contained in:
Serkyo 2026-07-07 18:14:52 +02:00
parent d0ddc31801
commit bf55c91e91
2 changed files with 2 additions and 2 deletions

View file

@ -11,6 +11,6 @@ workspace = true
[dependencies] [dependencies]
bytemuck = { version = "1.15", features = ["derive"] } bytemuck = { version = "1.15", features = ["derive"] }
fastrand = "2.4.1" fastrand = "2.4.1"
glam = "0.27" glam = { version = "0.27", features = ["serde"] }
noise = "0.9" noise = "0.9"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }

View file

@ -101,7 +101,7 @@ impl ChunkPos {
} }
/// A precision-safe position of an entity in the world. /// A precision-safe position of an entity in the world.
#[derive(Copy, Clone, Debug, PartialEq)] #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct EntityPos { pub struct EntityPos {
/// The chunk containing the entity; the exact integer anchor of the position. /// The chunk containing the entity; the exact integer anchor of the position.
pub chunk: ChunkPos, pub chunk: ChunkPos,