trex::simulation! [] [src]

macro_rules! simulation {
    {
        components: {
            $( $C:ident : $F:ident ),*
        },

        events: {
            $( $queue:ident : $E:ident ),*
        },

        systems: {
            $( $system:ident : $S:ident ),*
        }
    } => { ... };
}

The core wiring for entity component systems built on trex. This macro takes a set of Components, events, and Systems, and creates a Simulation type that manages them. See the library documentation for an example of how this macro is used.