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