mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
register group_manip and information event systems
This commit is contained in:
parent
e225da7a75
commit
4f4e560e72
@ -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>,
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user