- Update to Bevy 0.15
- Add
SequentialActions
marker for required components - Add skip amount in
ModifyActions::skip
- Add multiple actions with a tuple
- Removes
add_many
asadd
can now be used instead
- Removes
- Add cleanup of actions for despawned agents
on_stop
,on_remove
andon_drop
in theAction
trait now takeOption<Entity>
foragent
in order to respond to despawns- Replaces all unwraps with logging
- Adds
on_remove_hook
andon_remove_trigger
for bothCurrentAction
andActionQueue
- Update to Bevy 0.11
- Add downcasting for boxed actions
- Rework actions to be both more composable and simpler
- Adds four new methods to the
Action
trait:is_finished
which determines if an action is finished or not.on_add
which is called when an action is added to the queue.on_remove
which is called when an action is removed from the queue.on_drop
which is the last method to be called and gives full ownership.
- Changes
Action::on_start
to now return abool
for immediate action queue advancement. - Removes
ActionCommands
struct for modifying actions inside the action trait. - Removes
ActionFinished
component. - Removes
Repeat
configuration. - Removes parallel and linked actions.
- Removes tuple closure for anonymous actions with both
on_start
andon_stop
. - Renames
add_sequential
toadd_many
. - Exposes the
ActionQueue
andCurrentAction
components used by agents. - Exposes the
ActionHandler
struct that contains the system and methods used by this library.
- Adds four new methods to the
- Update to Bevy 0.10
- Add linked actions
- Replaces the
add_many
method withadd_sequence
andadd_parallel
- Replaces the
- Add
execute
method toModifyActions
trait - Replace
config
withstart
,order
andrepeat
methods - Replace
IntoBoxedAction
trait withFrom<Box<dyn Action>>
- Don't advance the action queue when canceling
- Use
Command
andCommandQueue
inActionCommands
- Update to Bevy 0.9
- Add parallel actions
- Introduces the
SequentialActionsPlugin
- Replaces the
finish
method with theActionFinished
component - Replaces the
stop(reason)
method withcancel
andpause
- Introduces the
- Add
SequentialActionsPlugin::get_systems
for scheduling the systems yourself - Add
actions!
helper macro for creating a collection of boxed actions - Add
Repeat::None
- Add
ActionsBundle::new
- Rename
ActionCommands::custom
method toadd
- Remove
ActionMarker
component
- Add
ActionBuilder
trait - Add
skip
method for skipping the next action in the queue - Add
ActionMarker
component toActionsBundle
- Add an anonymous action using a closure
- Add deferred
World
mutation when modifying actions usingActionCommands
- Update to Bevy 0.8
- Rename
Action
trait methods, addStopReason
enum and other stuff- Adds
StopReason
enum forAction::on_stop
method - Removes the
Action::remove
trait method - Renames
Action::start
method toAction::on_start
- Renames
Action::stop
method toAction::on_stop
- Renames
action(entity)
method toactions(entity)
for modifying actions
- Adds
- Relicense to dual MIT or Apache 2.0
- New simplified API for modifying actions
- Renames
Action::add
method toAction::start
- Renames
- Allow despawning an entity as its last action
First release! 🎉