rust/hedgewars-server/src/handlers.rs
changeset 15826 747278149393
parent 15565 02f648f7cbe1
child 15832 ee84e417d8d0
equal deleted inserted replaced
15825:b06b33cf0a89 15826:747278149393
     8 use self::{
     8 use self::{
     9     actions::{Destination, DestinationGroup, PendingMessage},
     9     actions::{Destination, DestinationGroup, PendingMessage},
    10     inanteroom::LoginResult,
    10     inanteroom::LoginResult,
    11     strings::*,
    11     strings::*,
    12 };
    12 };
       
    13 use crate::handlers::actions::ToPendingMessage;
    13 use crate::{
    14 use crate::{
    14     core::{
    15     core::{
    15         anteroom::HwAnteroom,
    16         anteroom::HwAnteroom,
    16         room::RoomSave,
    17         room::RoomSave,
    17         server::HwServer,
    18         server::HwServer,
    18         types::{ClientId, GameCfg, Replay, RoomId, TeamInfo},
    19         types::{ClientId, Replay, RoomId},
    19     },
    20     },
    20     protocol::messages::{
    21     utils,
       
    22 };
       
    23 use hedgewars_network_protocol::{
       
    24     messages::{
    21         global_chat, server_chat, HwProtocolMessage, HwProtocolMessage::EngineMessage,
    25         global_chat, server_chat, HwProtocolMessage, HwProtocolMessage::EngineMessage,
    22         HwServerMessage, HwServerMessage::*,
    26         HwServerMessage, HwServerMessage::*,
    23     },
    27     },
    24     utils,
    28     types::{GameCfg, TeamInfo},
    25 };
    29 };
       
    30 
    26 use base64::encode;
    31 use base64::encode;
    27 use log::*;
    32 use log::*;
    28 use rand::{thread_rng, RngCore};
    33 use rand::{thread_rng, RngCore};
    29 
    34 
    30 mod actions;
    35 mod actions;