beet_flow 0.0.8

An ECS control flow library
docs.rs failed to build beet_flow-0.0.8
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: beet_flow-0.0.7

beet_flow

Beet Flow is an ECS control flow library built with Bevy Observers. The ECS architecture allows for a growing list of paradigms to be used interchangably:

Hello World

A demonstration of a Sequence control flow common in behavior trees.

use beet_flow::prelude::*;
use beet_core::prelude::*;

let mut app = App::new();
app.add_plugins((
	// manages action lifecycles
	ControlFlowPlugin::default(),
	// this will log the name of each action as it is triggered.
	DebugFlowPlugin::default()
));

app.world_mut()
	.spawn((
		Name::new("My Behavior"),
		Sequence,
		children![
			(
				Name::new("Hello"),
				EndWith(Outcome::Pass),
			),
			(
				Name::new("World"),
				EndWith(Outcome::Pass),
			),
		],
	))
	.trigger_target(GetOutcome)
	.flush();