register group_manip and information event systems

This commit is contained in:
crabman 2024-02-13 18:03:34 +01:00
parent e225da7a75
commit 4f4e560e72
No known key found for this signature in database
3 changed files with 14 additions and 4 deletions

View File

@ -10,9 +10,13 @@ use common::{
uid::{IdMaps, Uid},
};
use common_net::msg::ServerGeneral;
use specs::{world::Entity, Entities, Read, ReadStorage, Write, WriteStorage};
use specs::{world::Entity, DispatcherBuilder, Entities, Read, ReadStorage, Write, WriteStorage};
use super::ServerEvent;
use super::{event_dispatch, ServerEvent};
pub(super) fn register_event_systems(builder: &mut DispatcherBuilder) {
event_dispatch::<GroupManipEvent>(builder);
}
pub fn can_invite(
clients: &ReadStorage<'_, Client>,

View File

@ -1,11 +1,15 @@
use crate::client::Client;
use common::event::RequestSiteInfoEvent;
use common_net::msg::{world_msg::EconomyInfo, ServerGeneral};
use specs::{ReadExpect, ReadStorage};
use specs::{DispatcherBuilder, ReadExpect, ReadStorage};
use std::collections::HashMap;
use world::IndexOwned;
use super::ServerEvent;
use super::{event_dispatch, ServerEvent};
pub(super) fn register_event_systems(builder: &mut DispatcherBuilder) {
event_dispatch::<RequestSiteInfoEvent>(builder);
}
#[cfg(not(feature = "worldgen"))]
impl ServerEvent for RequestSiteInfoEvent {

View File

@ -93,6 +93,8 @@ pub fn register_event_systems(builder: &mut DispatcherBuilder) {
entity_manipulation::register_event_systems(builder);
interaction::register_event_systems(builder);
invite::register_event_systems(builder);
group_manip::register_event_systems(builder);
information::register_event_systems(builder);
}
pub enum Event {