Struct swifco_rs::systems::reproduction::DefaultReproduction
source · [−]struct DefaultReproduction {
params: ReproductionParams,
blocked: Grid<u16>,
query: Query<With<(&'static Entity, &'static Age, &'static Coord), Female>>,
breeder_query: Query<(&'static Entity, &'static mut Breeder, &'static Coord)>,
to_breed: Vec<(Entity, Coord)>,
}
Fields
params: ReproductionParams
blocked: Grid<u16>
query: Query<With<(&'static Entity, &'static Age, &'static Coord), Female>>
breeder_query: Query<(&'static Entity, &'static mut Breeder, &'static Coord)>
to_breed: Vec<(Entity, Coord)>
Implementations
sourceimpl DefaultReproduction
impl DefaultReproduction
fn new(params: ReproductionParams) -> Self
fn assign_breeding(&mut self, world: &mut World, map: &Map, rng: &mut Rng)
Trait Implementations
sourceimpl System for DefaultReproduction
impl System for DefaultReproduction
fn initialize(&mut self, _world: &mut World, resources: &mut Resources)
fn update(&mut self, world: &mut World, resources: &mut Resources)
fn finalize(&mut self, _world: &mut World, _resources: &mut Resources)
fn init_boars(
&self,
_world: &mut World,
_resources: &mut Resources,
_boars: &[Entity]
)
Auto Trait Implementations
impl RefUnwindSafe for DefaultReproduction
impl Send for DefaultReproduction
impl !Sync for DefaultReproduction
impl Unpin for DefaultReproduction
impl UnwindSafe for DefaultReproduction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more