rust/hedgewars-server/src/server/handlers/checker.rs
author unc0rr
Mon, 10 Dec 2018 22:44:46 +0100
changeset 14415 06672690d71b
parent 14374 gameServer2/src/server/handlers/checker.rs@e5db279308d7
child 14457 98ef2913ec73
permissions -rw-r--r--
Move rust server into rust folder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13798
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     1
use mio;
13806
54725a1d1db8 make it build
nemo
parents: 13798
diff changeset
     2
use log::*;
13798
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::{
14374
e5db279308d7 dispose of server mods
alfadur
parents: 13806
diff changeset
     6
        core::HWServer,
13798
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
}