gameServer2/src/server/handlers/checker.rs
author alfadur
Wed, 31 Oct 2018 20:42:04 +0300
changeset 14051 e92cdb6d637e
parent 13811 54725a1d1db8
child 14379 e5db279308d7
permissions -rw-r--r--
japanese translation fixes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     1
use mio;
13811
54725a1d1db8 make it build
nemo
parents: 13803
diff changeset
     2
use log::*;
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     3
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     4
use crate::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     5
    server::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     6
        server::HWServer,
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     7
        coretypes::ClientId,
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     8
    },
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     9
    protocol::messages::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    10
        HWProtocolMessage
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    11
    },
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    12
};
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    13
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    14
pub fn handle(server: & mut HWServer, client_id: ClientId, message: HWProtocolMessage) {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    15
    match message {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    16
        _ => warn!("Unknown command"),
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    17
    }
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    18
}