{"repo":"hikikones/bevy-sequential-actions","free":true,"listed":false,"github":"https://github.com/hikikones/bevy-sequential-actions","clone":"git clone https://github.com/hikikones/bevy-sequential-actions.git","description":"A Bevy library for executing various actions in a sequence.","language":"Rust","stars":53,"topics":["bevy","gamedev","ecs","game-development","rust","bevy-plugin","bevy-engine"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Bevy Sequential Actions A simple library for managing and sequencing various actions in Bevy. An entity with a queue of repeating actions 📜 Getting Started Plugin The quickest way for getting started is adding the SequentialActionsPlugin to your App . Implementing an Action An action is anything that implements the Action trait. The trait contains various methods that together defines the lifecycle of an action. From this, you can create any action that can last as long as you like, and do as much as you like. An entity with actions is referred to as an agent . A simple wait action follows. Managing Actions Actions can be added to any Entity with the SequentialActions marker component. Adding and managing actions is done through the actions(agent) extension method implemented for both Commands and World . See the ManageActions trait for available methods. ⚠️ Warning Since you are given a mutable World , you can in practice do anything . Depending on what you do, the logic for advancing the action queue might not work properly. There are a few things you should keep in mind: If you want to despawn an agent as an action, this should be done in on start . The execute and next methods should not be used, as that will immediately advance the action queue while inside any of the trait methods. Instead, you should return true in on start . When adding new actions, you should set the start property to false . Otherwise, you will effectively call execute which, again, should not be u","default_branch":null,"files":null,"tree":[],"storefront":"/r/hikikones","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hikikones/bevy-sequential-actions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}