Crates.io | planck_ecs_bundle |
lib.rs | planck_ecs_bundle |
version | 1.1.0 |
source | src |
created_at | 2021-04-11 17:09:39.456289 |
updated_at | 2021-05-14 16:19:51.936299 |
description | Adds bundles to planck_ecs. |
homepage | |
repository | https://github.com/jojolepro/planck_ecs_bundle/ |
max_upload_size | |
id | 382071 |
size | 180,452 |
Support an Open Source Developer! :hearts:
Depends on:
System
part of an ECS engine.Read the documentation.
Add the following to you Cargo.toml file:
planck_ecs_bundle = "*"
Use it like so:
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);
}