rust/hedgewars-server/src/server/handlers/checker.rs
author Wuzzy <Wuzzy2@mail.ru>
Tue, 14 May 2019 02:29:29 +0200
changeset 14941 d6a8ef85cf53
parent 14702 f64e21f164a5
permissions -rw-r--r--
Fix parachute moving hog very fast or making it stuck when bumping into wall while facing the opposite direction (bug #742)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14462
98ef2913ec73 Apply rustfmt to all files
unc0rr
parents: 14420
diff changeset
     1
use log::*;
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     2
use mio;
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::{
14462
98ef2913ec73 Apply rustfmt to all files
unc0rr
parents: 14420
diff changeset
     5
    protocol::messages::HWProtocolMessage,
98ef2913ec73 Apply rustfmt to all files
unc0rr
parents: 14420
diff changeset
     6
    server::{core::HWServer, coretypes::ClientId},
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     7
};
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     8
14702
f64e21f164a5 fix some warnings
alfadur
parents: 14462
diff changeset
     9
pub fn handle(_server: &mut HWServer, _client_id: ClientId, message: HWProtocolMessage) {
13803
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    10
    match message {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    11
        _ => warn!("Unknown command"),
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    12
    }
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    13
}