pub struct TileView {
pub terrain: Option<TerrainId>,
pub flashes: Vec<f32>,
pub becomes: Option<TerrainId>,
}Expand description
One visible tile.
Fields§
§terrain: Option<TerrainId>Its terrain; None = off the map.
flashes: Vec<f32>How strongly it flashes after its terrain changed: 1 at the
change, fading to 0. One entry per change still flashing; usually
none.
becomes: Option<TerrainId>The terrain it would turn into (a spell being aimed at it): shown in place of its own, so the tile reads as terrain, not as a target.
Trait Implementations§
impl StructuralPartialEq for TileView
Auto Trait Implementations§
impl Freeze for TileView
impl RefUnwindSafe for TileView
impl Send for TileView
impl Sync for TileView
impl Unpin for TileView
impl UnsafeUnpin for TileView
impl UnwindSafe for TileView
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