2019-10-20 05:19:50 +00:00
|
|
|
pub mod entity_sync;
|
2019-10-15 04:06:14 +00:00
|
|
|
pub mod message;
|
|
|
|
pub mod subscription;
|
2019-10-20 05:19:50 +00:00
|
|
|
pub mod terrain;
|
|
|
|
pub mod terrain_sync;
|
2019-10-15 04:06:14 +00:00
|
|
|
|
|
|
|
use specs::DispatcherBuilder;
|
|
|
|
|
|
|
|
// System names
|
2019-10-20 05:19:50 +00:00
|
|
|
const ENTITY_SYNC_SYS: &str = "server_entity_sync_sys";
|
2019-10-15 04:06:14 +00:00
|
|
|
const SUBSCRIPTION_SYS: &str = "server_subscription_sys";
|
2019-10-20 05:19:50 +00:00
|
|
|
const TERRAIN_SYNC_SYS: &str = "server_terrain_sync_sys";
|
|
|
|
const TERRAIN_SYS: &str = "server_terrain_sys";
|
2019-10-15 04:06:14 +00:00
|
|
|
const MESSAGE_SYS: &str = "server_message_sys";
|
|
|
|
//const SYNC_CHUNK_SYS: &str = "server_sync_chunk_sys";
|
|
|
|
|
|
|
|
pub fn add_server_systems(dispatch_builder: &mut DispatcherBuilder) {
|
|
|
|
dispatch_builder.add(subscription::Sys, SUBSCRIPTION_SYS, &[]);
|
2019-10-20 05:19:50 +00:00
|
|
|
dispatch_builder.add(entity_sync::Sys, ENTITY_SYNC_SYS, &[SUBSCRIPTION_SYS]);
|
|
|
|
dispatch_builder.add(terrain_sync::Sys, TERRAIN_SYS, &[]);
|
|
|
|
dispatch_builder.add(terrain::Sys, TERRAIN_SYNC_SYS, &[TERRAIN_SYS]);
|
2019-10-15 04:06:14 +00:00
|
|
|
dispatch_builder.add(message::Sys, MESSAGE_SYS, &[]);
|
|
|
|
}
|