mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-04-20 03:25:09 +02:00
world/de: add level.dat data structures
We only need the spawn point from level.dat.
This commit is contained in:
parent
f9fc9efe8d
commit
429b7888f6
1 changed files with 15 additions and 0 deletions
|
@ -99,3 +99,18 @@ pub struct Chunk {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub chunk: ChunkVariants,
|
pub chunk: ChunkVariants,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// "Data" compound element of level.dat
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[serde(rename_all = "PascalCase")]
|
||||||
|
pub struct LevelDatData {
|
||||||
|
pub spawn_x: i32,
|
||||||
|
pub spawn_z: i32,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Toplevel compound element of level.dat
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[serde(rename_all = "PascalCase")]
|
||||||
|
pub struct LevelDat {
|
||||||
|
pub data: LevelDatData,
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue