gameServer2/src/server/handlers/checker.rs
author unc0rr
Wed, 28 Nov 2018 17:56:59 +0100
changeset 14337 acc96bccca6e
parent 13811 54725a1d1db8
child 14379 e5db279308d7
permissions -rw-r--r--
Fix punctuation + тест юникода в сообщении коммита
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
}