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§
source§impl SequentialActionsPlugin
impl SequentialActionsPlugin
sourcepub fn get_systems() -> SystemConfigs
pub fn get_systems() -> SystemConfigs
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_systems(SequentialActionsPlugin::get_systems().in_base_set(CoreSet::Last))
.run();
}
Trait Implementations§
source§impl Plugin for SequentialActionsPlugin
impl Plugin for SequentialActionsPlugin
source§fn setup(&self, _app: &mut App)
fn setup(&self, _app: &mut App)
Runs after all plugins are built, but before the app runner is called.
This can be useful if you have some resource that other plugins need during their build step,
but after build you want to remove it and send it to another thread.
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§
§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
.§fn 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
.§fn 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.§fn 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.