Macro bevy_sequential_actions::actions
source · macro_rules! actions {
( $( $x:expr ),* $(,)? ) => { ... };
}Expand description
Helper macro for creating a collection of boxed actions.
let actions: std::array::IntoIter<BoxedAction, 4> = actions![
QuitAction,
DespawnAction,
WaitAction::new(1.0),
|agent: Entity, world: &mut World, commands: &mut ActionCommands| {
// on_start
},
];