Support an Open Source Developer! :hearts:
Depends on:
* world_dispatcher: the System
part of an ECS engine.
Read the documentation.
Add the following to you Cargo.toml file:
planck_ecs_bundle = "*"
Use it like so:
rust
use world_dispatcher::*;
use planck_ecs_bundle::*;
struct TestBundle;
impl Bundle for TestBundle {
fn systems() -> Vec<System> {
vec![
(|| {Ok(())}).system(),
(|| {Ok(())}).system(),
(|| {println!("hello!"); Ok(())}).system(),
]
}
}
fn main() {
let mut builder = DispatcherBuilder::default();
builder = TestBundle::insert(builder);
}