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
Component
s, events, and System
s, and creates a Simulation
type that manages them.
See the library documentation for an example of how this macro is used.