macro_rules! actions {
( $( $action:expr ),+ $(,)? ) => { ... };
}
Expand description
Helper macro for creating an array of boxed actions.
let actions: [Box<dyn Action>; 3] = actions![
action_a,
action_b,
|agent: Entity, world: &mut World| -> bool {
// on_start
true
},
];