planck_ecs_bundle

Crates.ioplanck_ecs_bundle
lib.rsplanck_ecs_bundle
version1.1.0
sourcesrc
created_at2021-04-11 17:09:39.456289
updated_at2021-05-14 16:19:51.936299
descriptionAdds bundles to planck_ecs.
homepage
repositoryhttps://github.com/jojolepro/planck_ecs_bundle/
max_upload_size
id382071
size180,452
Joël Lupien (jojolepro)

documentation

README

Planck ECS Planck ECS Bundle

Planck ECS Bundles

Support an Open Source Developer! :hearts:
Become a patron

Depends on:

Read the documentation.

Features

  • Adds Bundle, a trait that creates a group of ECS systems and can add them to a dispatcher.

Usage

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);
}

Maintainer Information

  • Maintainer: Jojolepro
  • Contact: jojolepro [at] jojolepro [dot] com
  • Website: jojolepro.com
  • Patreon: patreon
Commit count: 10

cargo fmt