Struct swifco_rs::systems::management::hunting::BackgroundEventHunting
source · [−]struct BackgroundEventHunting {
buffer: u16,
delay: u32,
events: PyObject,
store_all_candidates: bool,
delayed_events: Vec<(u32, Coord)>,
query: Query<(&'static Entity, &'static Coord, &'static mut CauseOfDeath)>,
to_insert: Vec<(Entity, Vec<Entity>)>,
}
Fields
buffer: u16
delay: u32
events: PyObject
store_all_candidates: bool
delayed_events: Vec<(u32, Coord)>
query: Query<(&'static Entity, &'static Coord, &'static mut CauseOfDeath)>
to_insert: Vec<(Entity, Vec<Entity>)>
Implementations
Trait Implementations
sourceimpl System for BackgroundEventHunting
impl System for BackgroundEventHunting
fn update(&mut self, _world: &mut World, resources: &mut Resources)
fn initialize(&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 BackgroundEventHunting
impl Send for BackgroundEventHunting
impl !Sync for BackgroundEventHunting
impl Unpin for BackgroundEventHunting
impl UnwindSafe for BackgroundEventHunting
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