pub struct SequentialActionsPlugin;Expand description
The Plugin for this library that must be added to App in order for everything to work.
This plugin adds the necessary systems for advancing the action queue for each agent.
By default, the systems will be added to CoreStage::Last.
If you want to schedule the systems yourself, use get_systems.
use bevy::prelude::*;
use bevy_sequential_actions::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(SequentialActionsPlugin)
.run();
}Implementations
sourceimpl SequentialActionsPlugin
impl SequentialActionsPlugin
sourcepub fn get_systems() -> SystemSet
pub fn get_systems() -> SystemSet
Returns the systems used by this plugin. Useful if you want to schedule the systems yourself.
use bevy::prelude::*;
use bevy_sequential_actions::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_system_set_to_stage(CoreStage::Last, SequentialActionsPlugin::get_systems())
.run();
}Trait Implementations
sourceimpl Plugin for SequentialActionsPlugin
impl Plugin for SequentialActionsPlugin
Auto Trait Implementations
impl RefUnwindSafe for SequentialActionsPlugin
impl Send for SequentialActionsPlugin
impl Sync for SequentialActionsPlugin
impl Unpin for SequentialActionsPlugin
impl UnwindSafe for SequentialActionsPlugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more