pub struct TileLayer {
pub of: BTreeSet<TerrainId>,
pub tile: ImageRect,
pub beside: BTreeSet<TerrainId>,
pub sides: [Option<ImageRect>; 16],
}Expand description
A picture on each tile of some terrains.
Fields§
§of: BTreeSet<TerrainId>The terrains that get the picture.
tile: ImageRectThe picture, unless sides has one.
beside: BTreeSet<TerrainId>The terrains a neighbour is looked at for.
sides: [Option<ImageRect>; 16]The picture for a mix of the tile’s four neighbours being one
of beside, where it differs from
tile.
Implementations§
Trait Implementations§
impl Eq for TileLayer
impl StructuralPartialEq for TileLayer
Auto Trait Implementations§
impl Freeze for TileLayer
impl RefUnwindSafe for TileLayer
impl Send for TileLayer
impl Sync for TileLayer
impl Unpin for TileLayer
impl UnsafeUnpin for TileLayer
impl UnwindSafe for TileLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more