pub struct Cell {
pub graphic: u16,
pub altitude: i8,
}Expand description
An individual tile on a map
Fields§
§graphic: u16A lookup into art.mul as to what the floor tile should be
altitude: i8How high the floor tile is. When rendering, the reference point is the bottom right, the remaining corners are altered to match the surrounding tiles
Trait Implementations§
impl Copy for Cell
impl Eq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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