pub struct Sequence { /* private fields */ }Expand description
Control node that requires all children to succeed in order.
Sequence ticks children from left to right on each tick:
- returns
TickStatus::Failureas soon as a child fails - returns
TickStatus::Runningas soon as a child is still running - returns
TickStatus::Successonly if every child succeeds on the same tick
This variant does not remember which child was previously running, so the next tick starts again from the first child.
Implementations§
Trait Implementations§
Source§impl Node for Sequence
impl Node for Sequence
Source§fn tick(&mut self) -> TickStatus
fn tick(&mut self) -> TickStatus
Advance the node by one execution step. Read more
Auto Trait Implementations§
impl Freeze for Sequence
impl !RefUnwindSafe for Sequence
impl !Send for Sequence
impl !Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl !UnwindSafe for Sequence
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