struct DefaultInfection {
params: InfectionParams,
infectious: Grid<Vec<(Entity, f64)>>,
infected_query: Query<(&'static Entity, &'static Coord, &'static AsfInfected)>,
susceptible_query: Query<With<(&'static Entity, &'static Coord), AsfSusceptible>>,
carcass_query: Query<With<(&'static Entity, &'static Coord, Option<&'static Direction>, &'static CarcassDecomposition), AsfInfectiousCarcass>>,
new_carcass_query: Query<(&'static AsfInfected, Option<&'static AsfVariant>)>,
perm_query: Query<&'static Permeability>,
}
Fields
params: InfectionParams
infectious: Grid<Vec<(Entity, f64)>>
infected_query: Query<(&'static Entity, &'static Coord, &'static AsfInfected)>
susceptible_query: Query<With<(&'static Entity, &'static Coord), AsfSusceptible>>
carcass_query: Query<With<(&'static Entity, &'static Coord, Option<&'static Direction>, &'static CarcassDecomposition), AsfInfectiousCarcass>>
new_carcass_query: Query<(&'static AsfInfected, Option<&'static AsfVariant>)>
perm_query: Query<&'static Permeability>
Implementations
sourceimpl DefaultInfection
impl DefaultInfection
fn new(params: InfectionParams) -> Self
fn mark_carcasses(&mut self, world: &mut World, resources: &mut Resources)
fn collect_infectious(
&mut self,
world: &mut World,
map: &Map,
tick: u32
) -> 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