diff options
| author | mat <github@matdoes.dev> | 2022-05-02 23:07:06 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-02 23:07:06 +0000 |
| commit | 8e42e1c5dfc54314585b564696044780e0407c2f (patch) | |
| tree | 6527645ffbe05cb37716b00e2be9fc48d956a12b /azalea-world/src | |
| parent | 1e2ec611003770ce889d69545604f164e2ea8fff (diff) | |
| download | azalea-drasl-8e42e1c5dfc54314585b564696044780e0407c2f.tar.xz | |
more chunk and readme stuff
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs index e6b90ad5..8e60a6d6 100644 --- a/azalea-world/src/lib.rs +++ b/azalea-world/src/lib.rs @@ -12,12 +12,16 @@ mod tests { const SECTION_HEIGHT: u32 = 16; +pub struct World { + +} + pub struct Chunk { pub sections: Vec<Section>, } impl Chunk { - fn read_with_world_height(buf: &mut impl Read, world_height: u32) -> Result<Self, String> { + pub fn read_with_world_height(buf: &mut impl Read, world_height: u32) -> Result<Self, String> { let section_count = world_height / SECTION_HEIGHT; let mut sections = Vec::with_capacity(section_count as usize); for _ in 0..section_count { |
