2021-04-06 15:47:03 +00:00
|
|
|
#![feature(bool_to_option, option_unwrap_none, array_map)]
|
2021-03-16 07:56:43 +00:00
|
|
|
#![allow(clippy::option_map_unit_fn)]
|
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-04-06 15:47:03 +00:00
|
|
|
pub 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;
|
2021-04-04 03:04:02 +00:00
|
|
|
pub mod projectile;
|
2020-08-08 22:22:21 +00:00
|
|
|
mod shockwave;
|
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-04-06 15:47:03 +00:00
|
|
|
dispatch::<interpolation::Sys>(dispatch_builder, &[]);
|
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, &[
|
2021-04-06 15:47:03 +00:00
|
|
|
&interpolation::Sys::sys_name(),
|
2021-03-04 14:00:16 +00:00
|
|
|
&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::<aura::Sys>(dispatch_builder, &[]);
|
2019-03-02 03:48:30 +00:00
|
|
|
}
|