Refactor logic from new dump tools into library crate

This commit is contained in:
Matthias Schiffer 2023-01-25 21:41:08 +01:00
parent 5a364e2434
commit 5e96be3fda
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
8 changed files with 196 additions and 147 deletions

9
src/types.rs Normal file
View file

@ -0,0 +1,9 @@
pub const CHUNKS_PER_REGION: u8 = 32;
/// A chunk X coordinate relative to a region
#[derive(Debug, Clone, Copy)]
pub struct ChunkX(pub u8);
/// A chunk Z coordinate relative to a region
#[derive(Debug, Clone, Copy)]
pub struct ChunkZ(pub u8);