pub struct Shown { /* private fields */ }Expand description
The terrain shown on every tile of a scene’s view and of the ring of tiles just outside it.
Implementations§
Source§impl Shown
impl Shown
Sourcepub fn of<U>(scene: &MapScene<U>) -> Self
pub fn of<U>(scene: &MapScene<U>) -> Self
What scene shows: each tile’s terrain, or what a spell being
aimed would turn it into; a tile off the map (or one the scene
doesn’t say) as the nearest tile that has terrain.
Sourcepub fn at(&self, dx: i32, dy: i32) -> Option<TerrainId>
pub fn at(&self, dx: i32, dy: i32) -> Option<TerrainId>
The terrain shown on the tile dx right of and dy below the
view’s first: a tile of the view or of the ring round it. None
further out, or when no tile has terrain.
Trait Implementations§
impl Eq for Shown
impl StructuralPartialEq for Shown
Auto Trait Implementations§
impl Freeze for Shown
impl RefUnwindSafe for Shown
impl Send for Shown
impl Sync for Shown
impl Unpin for Shown
impl UnsafeUnpin for Shown
impl UnwindSafe for Shown
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