struct DefaultInfection {
params: InfectionParams,
infectious: Grid<Vec<(Entity, f64)>>,
infected_query: Query<(&'static Entity, &'static Coord, &'static CsfInfected)>,
susceptible_query: Query<With<(&'static Entity, &'static Coord), CsfSusceptible>>,
perm_query: Query<&'static Permeability>,
}
Fields
params: InfectionParams
infectious: Grid<Vec<(Entity, f64)>>
infected_query: Query<(&'static Entity, &'static Coord, &'static CsfInfected)>
susceptible_query: Query<With<(&'static Entity, &'static Coord), CsfSusceptible>>
perm_query: Query<&'static Permeability>
Implementations
sourceimpl DefaultInfection
impl DefaultInfection
fn new(params: InfectionParams) -> Self
fn collect_infectious(&mut self, world: &mut World, map: &Map) -> bool
Trait Implementations
sourceimpl System for DefaultInfection
impl System for DefaultInfection
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 DefaultInfection
impl Send for DefaultInfection
impl !Sync for DefaultInfection
impl Unpin for DefaultInfection
impl UnwindSafe for DefaultInfection
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