diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-09-15 21:59:03 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-09-15 21:59:03 +0200 |
commit | 36c16aa8c780e3ff9e2e08b7c98891fab59692c7 (patch) | |
tree | 0e47b87b8c861c6af4f275b2698587110cf88f18 /planetwars-matchrunner/src/match_log.rs | |
parent | ecd378f0d988c2139d08d3426e8549d09d930f9d (diff) | |
download | planetwars.dev-36c16aa8c780e3ff9e2e08b7c98891fab59692c7.tar.xz planetwars.dev-36c16aa8c780e3ff9e2e08b7c98891fab59692c7.zip |
log bad commands
Diffstat (limited to 'planetwars-matchrunner/src/match_log.rs')
-rw-r--r-- | planetwars-matchrunner/src/match_log.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/planetwars-matchrunner/src/match_log.rs b/planetwars-matchrunner/src/match_log.rs index 30751fd..087f2a9 100644 --- a/planetwars-matchrunner/src/match_log.rs +++ b/planetwars-matchrunner/src/match_log.rs @@ -13,6 +13,12 @@ pub enum MatchLogMessage { GameState(State), #[serde(rename = "stderr")] StdErr(StdErrMessage), + #[serde(rename = "bad_command")] + BadCommand { + player_id: u32, + command: String, + error: String, + }, } #[derive(Serialize, Deserialize, Debug)] |