Trait assembly_maps::raw::reader::TerrainReader

source ·
pub trait TerrainReader: Read {
    // Provided methods
    fn read_terrain_header(&mut self) -> FileResult<TerrainHeader> { ... }
    fn read_terrain_chunk(&mut self) -> FileResult<TerrainChunk> { ... }
    fn read_height_map_header(&mut self) -> FileResult<HeightMapHeader> { ... }
    fn read_height_map_data(
        &mut self,
        width: u32,
        height: u32,
    ) -> FileResult<Vec<f32>> { ... }
    fn read_color_map_data(&mut self) -> FileResult<Vec<u32>> { ... }
    fn read_embedded_file(&mut self) -> FileResult<Vec<u8>> { ... }
}

Provided Methods§

source

fn read_terrain_header(&mut self) -> FileResult<TerrainHeader>

source

fn read_terrain_chunk(&mut self) -> FileResult<TerrainChunk>

source

fn read_height_map_header(&mut self) -> FileResult<HeightMapHeader>

source

fn read_height_map_data( &mut self, width: u32, height: u32, ) -> FileResult<Vec<f32>>

source

fn read_color_map_data(&mut self) -> FileResult<Vec<u32>>

source

fn read_embedded_file(&mut self) -> FileResult<Vec<u8>>

Implementors§

source§

impl<T> TerrainReader for T
where T: Read,