Query boats layout

This commit is contained in:
2022-10-15 13:19:33 +02:00
parent a9f29e24fe
commit 375127eeee
5 changed files with 155 additions and 9 deletions

View File

@ -26,6 +26,7 @@ pub enum StartMode {
PlayRandom,
}
/// The messages a client could send to the server
#[derive(serde::Deserialize, serde::Serialize, Debug)]
#[serde(tag = "type")]
pub enum ClientMessage {
@ -37,6 +38,10 @@ pub enum ClientMessage {
RejectRematch,
}
/// The list of messages that can be sent from the server to the client
///
/// Messages types are ordered in the enum in a "kind of" chronogical order: most messages should be
/// sent only if the messages type below it have not already been sent.
#[derive(Message)]
#[rtype(result = "()")]
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]