pub struct FormationGenerator {
pub model: Option<Model>,
}Fields§
§model: Option<Model>Implementations§
Source§impl FormationGenerator
impl FormationGenerator
pub fn new() -> Self
pub fn with_model(model: Model) -> Self
Sourcepub fn generate_formation(&self, difficulty: f32, enemy_types: u32) -> Formation
pub fn generate_formation(&self, difficulty: f32, enemy_types: u32) -> Formation
Generate an enemy formation. difficulty in [0, 1], enemy_types is the
number of distinct enemy types available.
Auto Trait Implementations§
impl Freeze for FormationGenerator
impl RefUnwindSafe for FormationGenerator
impl Send for FormationGenerator
impl Sync for FormationGenerator
impl Unpin for FormationGenerator
impl UnsafeUnpin for FormationGenerator
impl UnwindSafe for FormationGenerator
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