pub struct RoomLayout {
pub grid: Vec<Vec<u8>>,
pub width: usize,
pub height: usize,
}Expand description
Generated room layout.
Fields§
§grid: Vec<Vec<u8>>2-D grid: 0=empty, 1=wall, 2=door, 3=obstacle, 4=spawn, 5=treasure
width: usize§height: usizeImplementations§
Trait Implementations§
Source§impl Clone for RoomLayout
impl Clone for RoomLayout
Source§fn clone(&self) -> RoomLayout
fn clone(&self) -> RoomLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoomLayout
impl RefUnwindSafe for RoomLayout
impl Send for RoomLayout
impl Sync for RoomLayout
impl Unpin for RoomLayout
impl UnsafeUnpin for RoomLayout
impl UnwindSafe for RoomLayout
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