aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src/match_log.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-15 21:59:03 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-15 21:59:03 +0200
commit36c16aa8c780e3ff9e2e08b7c98891fab59692c7 (patch)
tree0e47b87b8c861c6af4f275b2698587110cf88f18 /planetwars-matchrunner/src/match_log.rs
parentecd378f0d988c2139d08d3426e8549d09d930f9d (diff)
downloadplanetwars.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.rs6
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)]