pub struct RoomAccretionConfig {
pub templates: Vec<RoomTemplate>,
pub max_rooms: usize,
pub loop_chance: f64,
}Expand description
Configuration for Brogue-style room accretion.
Fields§
§templates: Vec<RoomTemplate>Room shape templates to use.
max_rooms: usizeMaximum number of rooms. Default: 20.
loop_chance: f64Probability of adding extra connections. Default: 0.1.
Trait Implementations§
Source§impl Clone for RoomAccretionConfig
impl Clone for RoomAccretionConfig
Source§fn clone(&self) -> RoomAccretionConfig
fn clone(&self) -> RoomAccretionConfig
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 moreSource§impl Debug for RoomAccretionConfig
impl Debug for RoomAccretionConfig
Source§impl Default for RoomAccretionConfig
impl Default for RoomAccretionConfig
Source§impl<'de> Deserialize<'de> for RoomAccretionConfig
impl<'de> Deserialize<'de> for RoomAccretionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoomAccretionConfig
impl RefUnwindSafe for RoomAccretionConfig
impl Send for RoomAccretionConfig
impl Sync for RoomAccretionConfig
impl Unpin for RoomAccretionConfig
impl UnwindSafe for RoomAccretionConfig
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