pub trait TileSource {
// Required methods
fn transformation(&self) -> OrthoTransformation;
fn get_at(&self, position: Vector2<i32>) -> Option<TileDefinitionHandle>;
}
Expand description
A trait for types that can produce a TileDefinitionHandle upon demand, for use with drawing on tilemaps.
Required Methods§
Sourcefn transformation(&self) -> OrthoTransformation
fn transformation(&self) -> OrthoTransformation
The transformation that should be applied to the tiles before they are written.