2019-04-16 21:06:33 +00:00
|
|
|
pub mod agent;
|
2019-05-09 21:30:44 +00:00
|
|
|
pub mod anim;
|
2019-04-16 21:06:33 +00:00
|
|
|
pub mod control;
|
2019-03-02 03:48:30 +00:00
|
|
|
pub mod phys;
|
|
|
|
|
|
|
|
// External
|
|
|
|
use specs::DispatcherBuilder;
|
|
|
|
|
|
|
|
// System names
|
2019-04-16 21:06:33 +00:00
|
|
|
const AGENT_SYS: &str = "agent_sys";
|
|
|
|
const CONTROL_SYS: &str = "control_sys";
|
2019-03-02 03:48:30 +00:00
|
|
|
const MOVEMENT_SYS: &str = "movement_sys";
|
2019-05-09 19:18:13 +00:00
|
|
|
const ANIM_SYS: &str = "anim_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, &[]);
|
|
|
|
dispatch_builder.add(control::Sys, CONTROL_SYS, &[]);
|
|
|
|
dispatch_builder.add(phys::Sys, MOVEMENT_SYS, &[]);
|
2019-05-09 19:18:13 +00:00
|
|
|
dispatch_builder.add(anim::Sys, ANIM_SYS, &[]);
|
2019-03-02 03:48:30 +00:00
|
|
|
}
|