feat(shared): derive serde on EntityPos
This commit is contained in:
parent
d0ddc31801
commit
bf55c91e91
|
|
@ -11,6 +11,6 @@ workspace = true
|
|||
[dependencies]
|
||||
bytemuck = { version = "1.15", features = ["derive"] }
|
||||
fastrand = "2.4.1"
|
||||
glam = "0.27"
|
||||
glam = { version = "0.27", features = ["serde"] }
|
||||
noise = "0.9"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ impl ChunkPos {
|
|||
}
|
||||
|
||||
/// 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 {
|
||||
/// The chunk containing the entity; the exact integer anchor of the position.
|
||||
pub chunk: ChunkPos,
|
||||
|
|
|
|||
Loading…
Reference in a new issue