From 5409d8c2ff2deebea918d1b16595a9e98744ef08 Mon Sep 17 00:00:00 2001 From: Martin Barksten Date: Tue, 13 Sep 2016 16:59:00 +0200 Subject: [PATCH] Minor fixes to messages --- src/structs.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/structs.rs b/src/structs.rs index 44f8ec7..20d5e74 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -117,7 +117,7 @@ pub struct GameStarting { pub struct HeartBeatResponse { #[serde(rename="type")] pub type_: String, - pub receivingPlayerId: Option + pub receivingPlayerId: String } #[derive(Serialize, Deserialize, Debug, PartialEq)] @@ -138,7 +138,6 @@ pub struct TournamentEnded { pub gameResult: String, pub tournamentName: String, pub tournamentId: String, - pub gameTick: Option } #[derive(Serialize, Deserialize, Debug)] @@ -150,8 +149,7 @@ pub struct Map { pub worldTick: u32, pub snakeInfos: Vec, pub foodPositions: Vec, - pub obstaclePositions: Vec, - pub receivingPlayerId: Option, + pub obstaclePositions: Vec } #[derive(Serialize, Deserialize, Debug, PartialEq)]