rust/hedgewars-server/src/handlers/checker.rs
changeset 15848 3d05bada4799
parent 15831 7d0f747afcb8
child 15882 f185e7367dd3
equal deleted inserted replaced
15847:2839b68a3732 15848:3d05bada4799
     1 use log::*;
     1 use log::*;
     2 
     2 
     3 use crate::core::{server::HwServer, types::ClientId};
     3 use crate::core::{server::HwServer, types::ClientId};
     4 use hedgewars_network_protocol::messages::HwProtocolMessage;
     4 use hedgewars_network_protocol::messages::HwProtocolMessage;
     5 
     5 
     6 pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
     6 pub fn handle(
       
     7     _server: &mut HwServer,
       
     8     _client_id: ClientId,
       
     9     _response: &mut super::Response,
       
    10     message: HwProtocolMessage,
       
    11 ) {
     7     match message {
    12     match message {
       
    13         HwProtocolMessage::CheckerReady => {
       
    14             warn!("Unimplemented")
       
    15         }
       
    16         HwProtocolMessage::CheckedOk(info) => {
       
    17             warn!("Unimplemented")
       
    18         }
       
    19         HwProtocolMessage::CheckedFail(message) => {
       
    20             warn!("Unimplemented")
       
    21         }
     8         _ => warn!("Unknown command"),
    22         _ => warn!("Unknown command"),
     9     }
    23     }
    10 }
    24 }