Type Alias oxygengine_core::ecs::life_cycle::EventsSystemResources
source · pub type EventsSystemResources<'a, T> = (WorldRef, Comp<&'a mut Events<T>>);
Trait Implementations§
source§impl<A, B> AccessType for (A, B)where
A: AccessType,
B: AccessType,
impl<A, B> AccessType for (A, B)where A: AccessType, B: AccessType,
source§impl<B, A> Fetch for (B, A)where
B: Fetch,
A: Fetch,
impl<B, A> Fetch for (B, A)where B: Fetch, A: Fetch,
§type State = (<B as Fetch>::State, <A as Fetch>::State)
type State = (<B as Fetch>::State, <A as Fetch>::State)
The type of the data which can be cached to speed up retrieving
the relevant type states from a matching
Archetype
source§fn access(archetype: &Archetype) -> Option<Access>
fn access(archetype: &Archetype) -> Option<Access>
How this query will access
archetype
, if at allsource§fn borrow(archetype: &Archetype, state: <(B, A) as Fetch>::State)
fn borrow(archetype: &Archetype, state: <(B, A) as Fetch>::State)
Acquire dynamic borrows from
archetype
source§fn prepare(archetype: &Archetype) -> Option<<(B, A) as Fetch>::State>
fn prepare(archetype: &Archetype) -> Option<<(B, A) as Fetch>::State>
Look up state for
archetype
if it should be traversedsource§fn execute(archetype: &Archetype, state: <(B, A) as Fetch>::State) -> (B, A)
fn execute(archetype: &Archetype, state: <(B, A) as Fetch>::State) -> (B, A)
Construct a
Fetch
for archetype
based on the associated state