Support an Open Source Developer! :hearts:

Become a patron

SPECS Declaration

A simple macro to effectively create SPECS systems.

Adding To Your Project

Add the following to your Cargo.toml file: specs_declaration = "*"

Usage

```rust use specs::*;

system!(SystemName, |velocity: WriteStorage<'a, Velocity>| { for vel in (&velocity,).join() { println!("velocity: {}, {}, {}", vel.x, vel.y, vel.z); } }); ```

With generics:

```rust use specs::*;

system!(SystemName, |myresource: Read<'a, T>, velocity: WriteStorage<'a, Velocity>| { println!("My Generic Resource: {:?}", myresource);

for vel in (&velocity,).join() {
    println!("velocity: {}, {}, {}", vel.x, vel.y, vel.z);
}

}); ```

Consider donating on my patreon if you find this useful!