struct Carcasses<P> {
params: P,
deaths_query: Query<(&'static Entity, &'static Coord, &'static CauseOfDeath, &'static Deceased)>,
query: Query<(&'static Entity, &'static CarcassDecomposition)>,
to_remove: Vec<Entity>,
}
Fields
params: P
deaths_query: Query<(&'static Entity, &'static Coord, &'static CauseOfDeath, &'static Deceased)>
query: Query<(&'static Entity, &'static CarcassDecomposition)>
to_remove: Vec<Entity>
Implementations
sourceimpl<P> Carcasses<P> where
P: CarcassesParams,
impl<P> Carcasses<P> where
P: CarcassesParams,
fn new(params: P) -> Self
fn create_carcasses(&mut self, world: &mut World, resources: &Resources)
fn remove_carcasses(&mut self, world: &mut World, resources: &Resources)
Trait Implementations
sourceimpl<P> System for Carcasses<P> where
P: CarcassesParams,
impl<P> System for Carcasses<P> where
P: CarcassesParams,
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<P> RefUnwindSafe for Carcasses<P> where
P: RefUnwindSafe,
impl<P> Send for Carcasses<P> where
P: Send,
impl<P> !Sync for Carcasses<P>
impl<P> Unpin for Carcasses<P> where
P: Unpin,
impl<P> UnwindSafe for Carcasses<P> where
P: UnwindSafe,
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