eccles

Crates.ioeccles
lib.rseccles
version0.2.3
sourcesrc
created_at2014-12-27 17:27:28.727573
updated_at2015-12-11 23:58:31.338387
descriptionAn Entity Component System in Rust focusing on speed and user-friendliness
homepage
repositoryhttps://github.com/TomBebbington/ecs.rs
max_upload_size
id649
size7,274
Gotham Core (github:gotham-rs:gotham-core)

documentation

http://tombebbington.github.io/ecs.rs/

README

Eccles

Eccles is a simple implementation of an Entity Component System in Rust, inspired by rust_ecs and ecs-rs. It uses macros to make the component list fast and easy to access.

The macro

You use the world! macro to construct a world to put entities, components and systems on. Its syntax is:

 world!{
    name: (The name of the world),
    components: {
        (list name for using as a field on the world) => (component type),
        positions => Position
    },
    processors: {
        (processor name for using as a field on the world) => (processor type with Default impl) for [(list names to give to the processors)],
        render => Render for [sprite, pos]
    }
 }
Commit count: 22

cargo fmt