Skip to main content

TerrainSource

Trait TerrainSource 

Source
pub trait TerrainSource {
    // Required method
    fn chunk_ground(&self, layer: i32, cx: i64, cy: i64) -> Option<&[Grid]>;
}
Expand description

Where the resolver reads painted terrain: the ground grids of chunks by address. A Plane is one; an editor can implement it over its own chunks, such as ones with unsaved edits.

Required Methods§

Source

fn chunk_ground(&self, layer: i32, cx: i64, cy: i64) -> Option<&[Grid]>

The ground grids of the chunk at (layer, cx, cy), one per profile ground layer in order, or None where there is no chunk.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§