gameServer2/src/server/handlers/inroom.rs
author unc0rr
Wed, 06 Dec 2017 23:46:17 +0100
changeset 12852 bd35cb2302b3
parent 12147 03ccb89820f3
child 12853 a9d105dc5c95
permissions -rw-r--r--
Quick dirty fix for building
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12147
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     1
use mio;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     2
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     3
use server::server::HWServer;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     4
use server::actions::Action;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     5
use server::actions::Action::*;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     6
use protocol::messages::HWProtocolMessage;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     7
use protocol::messages::HWServerMessage::*;
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
     8
12852
bd35cb2302b3 Quick dirty fix for building
unc0rr
parents: 12147
diff changeset
     9
pub fn handle(server: &mut HWServer, token: usize, poll: &mio::Poll, message: HWProtocolMessage) {
12147
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
    10
    match message {
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
    11
        _ => warn!("Unimplemented!"),
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
    12
    }
03ccb89820f3 Room creation halfplemented
unc0rr
parents:
diff changeset
    13
}