pub struct DungeonOpts {
pub w: i32,
pub h: i32,
pub rooms: usize,
pub seed: u64,
pub floor: u32,
pub wall: u32,
pub path: Option<u32>,
}Expand description
Dungeon parameters: w×h cells (from cell 0,0), rooms random chambers
connected by corridors; every border cell of open space gets the wall tile.
Fields§
§w: i32§h: i32§rooms: usize§seed: u64§floor: u32§wall: u32§path: Option<u32>Optional distinct tile for corridors (e.g. “weg”); corridors are then kept out of the room floor set.
Trait Implementations§
Source§impl Clone for DungeonOpts
impl Clone for DungeonOpts
Source§fn clone(&self) -> DungeonOpts
fn clone(&self) -> DungeonOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DungeonOpts
impl Debug for DungeonOpts
Auto Trait Implementations§
impl Freeze for DungeonOpts
impl RefUnwindSafe for DungeonOpts
impl Send for DungeonOpts
impl Sync for DungeonOpts
impl Unpin for DungeonOpts
impl UnsafeUnpin for DungeonOpts
impl UnwindSafe for DungeonOpts
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