2019-04-16 21:06:33 +00:00
|
|
|
pub mod agent;
|
2019-05-19 14:53:07 +00:00
|
|
|
pub mod animation;
|
2019-06-09 14:20:20 +00:00
|
|
|
pub mod controller;
|
2019-05-22 20:53:24 +00:00
|
|
|
pub mod inputs;
|
2019-03-02 03:48:30 +00:00
|
|
|
pub mod phys;
|
2019-05-17 20:47:58 +00:00
|
|
|
mod stats;
|
2019-03-02 03:48:30 +00:00
|
|
|
|
|
|
|
// External
|
|
|
|
use specs::DispatcherBuilder;
|
|
|
|
|
|
|
|
// System names
|
2019-04-16 21:06:33 +00:00
|
|
|
const AGENT_SYS: &str = "agent_sys";
|
2019-06-09 14:20:20 +00:00
|
|
|
const CONTROLLER_SYS: &str = "controller_sys";
|
2019-05-16 17:40:32 +00:00
|
|
|
const PHYS_SYS: &str = "phys_sys";
|
2019-06-09 19:33:20 +00:00
|
|
|
const INPUTS_SYS: &str = "inputs_sys";
|
2019-05-19 14:53:07 +00:00
|
|
|
const ANIMATION_SYS: &str = "animation_sys";
|
2019-05-17 20:47:58 +00:00
|
|
|
const STATS_SYS: &str = "stats_sys";
|
2019-03-02 03:48:30 +00:00
|
|
|
|
|
|
|
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
|
2019-04-16 21:06:33 +00:00
|
|
|
dispatch_builder.add(agent::Sys, AGENT_SYS, &[]);
|
2019-06-09 14:20:20 +00:00
|
|
|
dispatch_builder.add(controller::Sys, CONTROLLER_SYS, &[]);
|
2019-06-09 19:33:20 +00:00
|
|
|
dispatch_builder.add(phys::Sys, PHYS_SYS, &[]);
|
2019-05-23 15:54:15 +00:00
|
|
|
dispatch_builder.add(inputs::Sys, INPUTS_SYS, &[]);
|
2019-05-19 14:53:07 +00:00
|
|
|
dispatch_builder.add(animation::Sys, ANIMATION_SYS, &[]);
|
2019-05-22 20:53:24 +00:00
|
|
|
dispatch_builder.add(stats::Sys, STATS_SYS, &[INPUTS_SYS]);
|
2019-03-02 03:48:30 +00:00
|
|
|
}
|