2021-01-08 19:12:09 +00:00
|
|
|
#![feature(label_break_value, bool_to_option, option_unwrap_none)]
|
2020-12-01 00:28:00 +00:00
|
|
|
|
2020-12-04 22:24:56 +00:00
|
|
|
mod aura;
|
2020-09-05 16:27:36 +00:00
|
|
|
mod beam;
|
2020-08-10 22:54:45 +00:00
|
|
|
mod buff;
|
2020-03-07 19:02:54 +00:00
|
|
|
pub mod character_behavior;
|
2019-06-09 14:20:20 +00:00
|
|
|
pub mod controller;
|
2021-03-13 22:15:19 +00:00
|
|
|
mod interpolation;
|
2020-10-17 22:42:43 +00:00
|
|
|
pub mod melee;
|
2019-11-04 00:57:36 +00:00
|
|
|
mod mount;
|
2019-03-02 03:48:30 +00:00
|
|
|
pub mod phys;
|
2020-12-15 11:14:26 +00:00
|
|
|
#[cfg(feature = "plugins")] pub mod plugin;
|
2019-09-17 12:43:19 +00:00
|
|
|
mod projectile;
|
2020-08-08 22:22:21 +00:00
|
|
|
mod shockwave;
|
2020-12-01 12:13:07 +00:00
|
|
|
pub mod state;
|
2019-05-17 20:47:58 +00:00
|
|
|
mod stats;
|
2019-03-02 03:48:30 +00:00
|
|
|
|
|
|
|
// External
|
2021-03-08 22:40:02 +00:00
|
|
|
use common_ecs::{dispatch, System};
|
2019-03-02 03:48:30 +00:00
|
|
|
use specs::DispatcherBuilder;
|
|
|
|
|
|
|
|
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
|
2021-03-04 14:00:16 +00:00
|
|
|
dispatch::<mount::Sys>(dispatch_builder, &[]);
|
|
|
|
dispatch::<controller::Sys>(dispatch_builder, &[&mount::Sys::sys_name()]);
|
|
|
|
dispatch::<character_behavior::Sys>(dispatch_builder, &[&controller::Sys::sys_name()]);
|
|
|
|
dispatch::<stats::Sys>(dispatch_builder, &[]);
|
|
|
|
dispatch::<buff::Sys>(dispatch_builder, &[]);
|
|
|
|
dispatch::<phys::Sys>(dispatch_builder, &[
|
|
|
|
&controller::Sys::sys_name(),
|
|
|
|
&mount::Sys::sys_name(),
|
|
|
|
&stats::Sys::sys_name(),
|
2020-03-07 19:02:54 +00:00
|
|
|
]);
|
2021-03-04 14:00:16 +00:00
|
|
|
dispatch::<projectile::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
|
|
dispatch::<shockwave::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
|
|
dispatch::<beam::Sys>(dispatch_builder, &[&phys::Sys::sys_name()]);
|
|
|
|
dispatch::<melee::Sys>(dispatch_builder, &[&projectile::Sys::sys_name()]);
|
|
|
|
dispatch::<aura::Sys>(dispatch_builder, &[]);
|
2019-03-02 03:48:30 +00:00
|
|
|
}
|