mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
pub mod agent;
|
|
pub mod character_behavior;
|
|
pub mod combat;
|
|
pub mod controller;
|
|
mod mount;
|
|
pub mod phys;
|
|
mod projectile;
|
|
mod stats;
|
|
|
|
// External
|
|
use specs::DispatcherBuilder;
|
|
|
|
// System names
|
|
pub const CHARACTER_BEHAVIOR_SYS: &str = "character_behavior_sys";
|
|
pub const COMBAT_SYS: &str = "combat_sys";
|
|
pub const AGENT_SYS: &str = "agent_sys";
|
|
pub const CONTROLLER_SYS: &str = "controller_sys";
|
|
pub const MOUNT_SYS: &str = "mount_sys";
|
|
pub const PHYS_SYS: &str = "phys_sys";
|
|
pub const PROJECTILE_SYS: &str = "projectile_sys";
|
|
pub const STATS_SYS: &str = "stats_sys";
|
|
|
|
pub fn add_local_systems(dispatch_builder: &mut DispatcherBuilder) {
|
|
dispatch_builder.add(agent::Sys, AGENT_SYS, &[]);
|
|
dispatch_builder.add(mount::Sys, MOUNT_SYS, &[AGENT_SYS]);
|
|
dispatch_builder.add(controller::Sys, CONTROLLER_SYS, &[AGENT_SYS, MOUNT_SYS]);
|
|
dispatch_builder.add(character_behavior::Sys, CHARACTER_BEHAVIOR_SYS, &[
|
|
CONTROLLER_SYS,
|
|
]);
|
|
dispatch_builder.add(stats::Sys, STATS_SYS, &[]);
|
|
dispatch_builder.add(phys::Sys, PHYS_SYS, &[CONTROLLER_SYS, MOUNT_SYS, STATS_SYS]);
|
|
dispatch_builder.add(projectile::Sys, PROJECTILE_SYS, &[PHYS_SYS]);
|
|
dispatch_builder.add(combat::Sys, COMBAT_SYS, &[PROJECTILE_SYS]);
|
|
}
|