pub struct BSPMap { /* private fields */ }Expand description
Map generated with binary search partitioning. The map must have a size of atleast (20,20).
Credit to https://gamedevelopment.tutsplus.com/tutorials/how-to-use-bsp-trees-to-generate-game-maps–gamedev-12268 and https://github.com/whostolemyhat/dungeon for algorithm and rust implementation help.
Implementations§
Source§impl BSPMap
impl BSPMap
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BSPMap
impl RefUnwindSafe for BSPMap
impl Send for BSPMap
impl Sync for BSPMap
impl Unpin for BSPMap
impl UnwindSafe for BSPMap
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