#![feature(bool_to_option, array_map)] #![allow(clippy::option_map_unit_fn)] mod aura; mod beam; mod buff; pub mod character_behavior; pub mod controller; mod interpolation; pub mod melee; mod mount; pub mod phys; pub mod projectile; mod shockwave; mod stats; // External use common_ecs::{dispatch, System}; use specs::DispatcherBuilder; pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) { //TODO: don't run interpolation on server dispatch::(dispatch_builder, &[]); dispatch::(dispatch_builder, &[]); dispatch::(dispatch_builder, &[&mount::Sys::sys_name()]); dispatch::(dispatch_builder, &[&controller::Sys::sys_name()]); dispatch::(dispatch_builder, &[]); dispatch::(dispatch_builder, &[]); dispatch::(dispatch_builder, &[ &interpolation::Sys::sys_name(), &controller::Sys::sys_name(), &mount::Sys::sys_name(), &stats::Sys::sys_name(), ]); dispatch::(dispatch_builder, &[&phys::Sys::sys_name()]); dispatch::(dispatch_builder, &[&phys::Sys::sys_name()]); dispatch::(dispatch_builder, &[&phys::Sys::sys_name()]); dispatch::(dispatch_builder, &[]); }