Crates.io | beet_flow |
lib.rs | beet_flow |
version | |
source | src |
created_at | 2024-07-27 05:30:13.14425+00 |
updated_at | 2025-03-08 03:27:21.089378+00 |
description | An ECS control flow library |
homepage | https://docs.rs/beet |
repository | https://github.com/mrchantey/beet |
max_upload_size | |
id | 1317077 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
beet_flow
Beet Flow is an ECS control flow library, built with Bevy Observers. Being ECS first gives Beet a high level of flexibility and modularity.
Currently implemented paradigms:
A demonstration of a Sequence control flow common in behavior trees
Using BeetDebugPlugin
will log the name of each action as it is triggered.
use bevy::prelude::*;
use beet_flow::prelude::*;
let mut app = App::new();
app
.add_plugins((
BeetFlowPlugin::default(),
BeetDebugPlugin::default()
))
.world_mut()
.spawn((
Name::new("My Behavior"),
Sequence
))
.with_child((
Name::new("Hello"),
ReturnWith(RunResult::Success),
))
.with_child((
Name::new("World"),
ReturnWith(RunResult::Success),
))
.trigger(OnRun::local());
app.world_mut().flush();
OnMutate
observers, they should probably replace most OnInsert
observers we're using