Struct specs_hierarchy::HierarchySystem [−][src]
pub struct HierarchySystem<P> { /* fields omitted */ }
System for maintaining a Hierarchy
resource.
Type parameters:
P
: Component type that providesParent
links for the maintainedHierarchy
Methods
impl<P> HierarchySystem<P>
[src]
impl<P> HierarchySystem<P>
Trait Implementations
impl<'a, P> System<'a> for HierarchySystem<P> where
P: Component + Parent + Send + Sync + 'static,
P::Storage: Tracked,
[src]
impl<'a, P> System<'a> for HierarchySystem<P> where
P: Component + Parent + Send + Sync + 'static,
P::Storage: Tracked,
type SystemData = (ParentData<'a, P>, Write<'a, Hierarchy<P>, HierarchySetupHandler<P>>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (data, hierarchy): Self::SystemData)
[src]
fn run(&mut self, (data, hierarchy): Self::SystemData)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
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
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
[src]
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the SystemData
.
fn setup(&mut self, res: &mut Resources)
[src]
fn setup(&mut self, res: &mut Resources)
Sets up the Resources
using Self::SystemData::setup
.
Auto Trait Implementations
impl<P> Send for HierarchySystem<P> where
P: Send,
impl<P> Send for HierarchySystem<P> where
P: Send,
impl<P> Sync for HierarchySystem<P> where
P: Sync,
impl<P> Sync for HierarchySystem<P> where
P: Sync,