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