pub struct WavesBuilder { /* private fields */ }Implementations§
Source§impl WavesBuilder
impl WavesBuilder
Sourcepub fn add_mob_type(self, mob_type: MobType) -> WavesBuilder
pub fn add_mob_type(self, mob_type: MobType) -> WavesBuilder
Register a single mob type with the waves builder!
Sourcepub fn add_mob_types(self, mob_types: Vec<MobType>) -> WavesBuilder
pub fn add_mob_types(self, mob_types: Vec<MobType>) -> WavesBuilder
Register a vec of mob types all at once!
Sourcepub fn with_mob_types(self, mob_types: Vec<MobType>) -> WavesBuilder
pub fn with_mob_types(self, mob_types: Vec<MobType>) -> WavesBuilder
Use an already finished vec of mob types!
Sourcepub fn with_cost_function(self, f: fn(usize) -> usize) -> WavesBuilder
pub fn with_cost_function(self, f: fn(usize) -> usize) -> WavesBuilder
Specify cost function for the waves!
Sourcepub fn with_starting_wave(self, starting_wave: usize) -> WavesBuilder
pub fn with_starting_wave(self, starting_wave: usize) -> WavesBuilder
Usually 1, sets the starting wave!
Auto Trait Implementations§
impl Freeze for WavesBuilder
impl RefUnwindSafe for WavesBuilder
impl Send for WavesBuilder
impl Sync for WavesBuilder
impl Unpin for WavesBuilder
impl UnwindSafe for WavesBuilder
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