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]
Trait Implementations
impl<'a, P> System<'a> for HierarchySystem<P> where
P: Component + Parent + Send + Sync + 'static,
P::Storage: Tracked,
[src]
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]
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
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 setup(&mut self, res: &mut Resources)
[src]
Sets up the Resources
using Self::SystemData::setup
.
Auto Trait Implementations
impl<P> Send for HierarchySystem<P> where
P: Send,
P: Send,
impl<P> Sync for HierarchySystem<P> where
P: Sync,
P: Sync,