pub struct SimpleNavDriverSystem;Expand description
Simple nav driver system. It’s used to apply simple movement of agents with SimpleNavDriverTag
component tag on their paths.
Implementations§
Sourcepub fn run_impl<'s>(
delta_time: Scalar,
(agents, drivers): (WriteStorage<'s, NavAgent>, ReadStorage<'s, SimpleNavDriverTag>),
)
pub fn run_impl<'s>( delta_time: Scalar, (agents, drivers): (WriteStorage<'s, NavAgent>, ReadStorage<'s, SimpleNavDriverTag>), )
Internal system run function.
Trait Implementations§
Source§type SystemData = (Read<'s, AppLifeCycle, PanicHandler>, Storage<'s, NavAgent, FetchMut<'s, MaskedStorage<NavAgent>>>, Storage<'s, SimpleNavDriverTag, Fetch<'s, MaskedStorage<SimpleNavDriverTag>>>)
type SystemData = (Read<'s, AppLifeCycle, PanicHandler>, Storage<'s, NavAgent, FetchMut<'s, MaskedStorage<NavAgent>>>, Storage<'s, SimpleNavDriverTag, Fetch<'s, MaskedStorage<SimpleNavDriverTag>>>)
The resource bundle required to execute this system. Read more
Source§fn run(&mut self, (lifecycle, agents, drivers): Self::SystemData)
fn run(&mut self, (lifecycle, agents, drivers): Self::SystemData)
Executes the system with the required system
data.
Source§fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
Source§fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData.Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Erased for T
impl<T> Event for T
impl<T> Resource for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.