Trait Region
Other items infastanvil
pub trait Region { fn chunk(&self, x: CCoord, z: CCoord) -> Option<Box<dyn Chunk>>; }
fn chunk(&self, x: CCoord, z: CCoord) -> Option<Box<dyn Chunk>>
Load the chunk at the given chunk coordinates, ie 0..32 for x and z. Implmentations do not need to be concerned with caching chunks they have loaded, this will be handled by the types using the region.
impl<S: Seek + Read> Region for RegionBuffer<S>