team04_server/messages/game_start.rs
1use super::*;
2
3pub struct GameStart;
4
5impl GameStart {
6 pub fn new() -> Self {
7 Self
8 }
9}
10
11impl MessageTx for GameStart {
12 fn serialize(&self) -> String {
13 #[derive(Serialize)]
14 #[serde(rename_all = "camelCase")]
15 struct GameStart {
16 message_type: &'static str,
17 }
18
19 serialize(&GameStart {
20 message_type: "GAME_START",
21 })
22 }
23}