gameServer2/src/server/handlers/lobby.rs
changeset 13805 0463a4221327
parent 13666 09f4a30e50cc
child 14374 e5db279308d7
equal deleted inserted replaced
13804:201d86010a8b 13805:0463a4221327
    11         HWServerMessage::*
    11         HWServerMessage::*
    12     },
    12     },
    13     utils::is_name_illegal
    13     utils::is_name_illegal
    14 };
    14 };
    15 use super::common::rnd_reply;
    15 use super::common::rnd_reply;
       
    16 use log::*;
    16 
    17 
    17 pub fn handle(server: &mut HWServer, client_id: ClientId, message: HWProtocolMessage) {
    18 pub fn handle(server: &mut HWServer, client_id: ClientId, message: HWProtocolMessage) {
    18     use crate::protocol::messages::HWProtocolMessage::*;
    19     use crate::protocol::messages::HWProtocolMessage::*;
    19     match message {
    20     match message {
    20         CreateRoom(name, password) => {
    21         CreateRoom(name, password) => {