assembly_maps/raw/
file.rs

1//! ### General structs and data
2
3#[derive(Debug)]
4pub struct TerrainHeader {
5    pub version: u8,
6    pub value_1: u8,
7    pub value_2: u8,
8    pub chunk_count: u32,
9    pub width_in_chunks: u32,
10    pub height_in_chunks: u32,
11}
12
13#[derive(Debug)]
14pub struct TerrainChunk {
15    pub index: u32,
16}
17
18#[derive(Debug)]
19pub struct HeightMapHeader {
20    pub width: u32,
21    pub height: u32,
22    pub pos_x: f32,
23    /// (or y in 2D)
24    pub pos_z: f32,
25    /// these 4 ints seem to stay mostly constant, but sometimes change
26    pub _1: u32,
27    pub _2: u32,
28    pub _3: u32,
29    pub _4: u32,
30    /// this might sound silly, but is it y?
31    pub _5: f32,
32}