[−][src]Struct specs_task::TaskManager
The main object for users of this module. Used for creating and connecting tasks.
Implementations
impl<'_> TaskManager<'_>
[src]
pub fn task_is_complete(&self, entity: Entity) -> bool
[src]
Returns true iff the task was seen as complete on the last run of the TaskManagerSystem
.
WARNING: assumes that this entity was at one point a task, and it can't tell otherwise.
pub fn entity_is_complete(&self, entity: Entity) -> bool
[src]
Tells you whether a fork or a task entity is complete.
WARNING: assumes that this entity was at one point a task or a fork, and it can't tell otherwise.
pub fn count_tasks_in_progress(&self) -> usize
[src]
Returns the number of tasks that haven't yet completed.
pub fn delete_descendents(&self, entity: Entity)
[src]
Deletes only the descendent entities of entity
, but leaves entity
alive.
pub fn delete_entity_and_descendents(&self, entity: Entity)
[src]
Deletes entity
and all of its descendents.
Trait Implementations
impl<'a> SystemData<'a> for TaskManager<'a> where
Entities<'a>: SystemData<'a>,
WriteStorage<'a, TaskProgress>: SystemData<'a>,
ReadStorage<'a, SingleEdge>: SystemData<'a>,
ReadStorage<'a, MultiEdge>: SystemData<'a>,
[src]
Entities<'a>: SystemData<'a>,
WriteStorage<'a, TaskProgress>: SystemData<'a>,
ReadStorage<'a, SingleEdge>: SystemData<'a>,
ReadStorage<'a, MultiEdge>: SystemData<'a>,
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TaskManager<'a>
impl<'a> !Send for TaskManager<'a>
impl<'a> !Sync for TaskManager<'a>
impl<'a> Unpin for TaskManager<'a>
impl<'a> !UnwindSafe for TaskManager<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DynamicSystemData<'a> for T where
T: SystemData<'a>,
T: SystemData<'a>,
type Accessor = StaticAccessor<T>
The accessor of the SystemData
, which specifies the read and write dependencies and does the fetching. Read more
fn setup(&StaticAccessor<T>, world: &mut World)
fn fetch(&StaticAccessor<T>, world: &'a World) -> T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,