diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java index e2537d7..b0c9c73 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/GameStructureMessage.java @@ -1,6 +1,7 @@ package uulm.teamname.marvelous.gamelibrary.messages; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; import uulm.teamname.marvelous.gamelibrary.config.CharacterConfig; import uulm.teamname.marvelous.gamelibrary.config.CharacterProperties; import uulm.teamname.marvelous.gamelibrary.config.PartyConfig; @@ -10,6 +11,15 @@ import java.util.Arrays; import java.util.Objects; import java.util.stream.Stream; +@JsonPropertyOrder({ + "messageType", + "assignment", + "playerOneName", + "playerTwoName", + "playerOneCharacters", + "playerTwoCharacters", + "scenarioconfig", + "matchconfig"}) public class GameStructureMessage extends BasicMessage { public final MessageType messageType = MessageType.GAME_STRUCTURE;