pub struct BspConfig {
pub min_room_size: usize,
pub max_depth: usize,
pub room_padding: usize,
}Expand description
Configuration for BSP (Binary Space Partitioning) dungeon generation.
Fields§
§min_room_size: usizeMinimum room dimension. Default: 5.
max_depth: usizeMaximum BSP tree depth. Default: 4.
room_padding: usizePadding between rooms and partition edges. Default: 1.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BspConfig
impl<'de> Deserialize<'de> for BspConfig
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 BspConfig
impl RefUnwindSafe for BspConfig
impl Send for BspConfig
impl Sync for BspConfig
impl Unpin for BspConfig
impl UnwindSafe for BspConfig
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