kvark / simplecs

Simple Entity-Component System
Apache License 2.0
10 stars 0 forks source link

Syntax ECS #5

Closed kvark closed 9 years ago

kvark commented 9 years ago

Closes #3

This is a struct decorator to be used like this:

#[plugin(secs)]
extern crate id;

#[secs(id)]
struct Prototype<T1, T2> {
    name1: Component1<T1>,
    name2: Component2,
}

It generates the same Entity, Components, World as before but with several bonuses: