author | alfadur |
Mon, 25 Mar 2024 16:05:11 +0300 | |
changeset 16000 | d9f1b239b6d7 |
parent 15882 | f185e7367dd3 |
permissions | -rw-r--r-- |
15120 | 1 |
use log::*; |
2 |
||
15882
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
3 |
use crate::core::{server::HwServer, types::CheckerId}; |
15804 | 4 |
use hedgewars_network_protocol::messages::HwProtocolMessage; |
15120 | 5 |
|
15848 | 6 |
pub fn handle( |
15882
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
7 |
server: &mut HwServer, |
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
8 |
checker_id: CheckerId, |
15848 | 9 |
_response: &mut super::Response, |
10 |
message: HwProtocolMessage, |
|
11 |
) { |
|
15120 | 12 |
match message { |
15848 | 13 |
HwProtocolMessage::CheckerReady => { |
15882
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
14 |
server |
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
15 |
.get_checker_mut(checker_id) |
f185e7367dd3
Add some work towards having checker work with the new server
unC0Rr
parents:
15848
diff
changeset
|
16 |
.map(|c| c.set_is_ready(true)); |
15848 | 17 |
warn!("Unimplemented") |
18 |
} |
|
19 |
HwProtocolMessage::CheckedOk(info) => { |
|
20 |
warn!("Unimplemented") |
|
21 |
} |
|
22 |
HwProtocolMessage::CheckedFail(message) => { |
|
23 |
warn!("Unimplemented") |
|
24 |
} |
|
15120 | 25 |
_ => warn!("Unknown command"), |
26 |
} |
|
27 |
} |