gameServer2/src/server/handlers/checker.rs
author alfadur
Fri, 07 Dec 2018 18:21:06 +0300
changeset 14379 e5db279308d7
parent 13811 54725a1d1db8
permissions -rw-r--r--
dispose of server mods
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::{
14379
e5db279308d7 dispose of server mods
alfadur
parents: 13811
diff changeset
     6
        core::HWServer,
13803
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
}