Skip to content

AnneKitsune/planck_ecs_bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planck ECS

Planck ECS Bundle

Planck ECS Bundles

Support an Open Source Developer! ♥️
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages