diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/Event.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/Event.java index cd24dbc..e554545 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/Event.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/Event.java @@ -1,13 +1,16 @@ package uulm.teamname.marvelous.gamelibrary.events; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import uulm.teamname.marvelous.gamelibrary.json.basic.EventMessage; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import uulm.teamname.marvelous.gamelibrary.messages.EventMessage; import uulm.teamname.marvelous.gamelibrary.json.ingame.deserialize.EventDeserializer; +import uulm.teamname.marvelous.gamelibrary.json.ingame.serialize.EventSerializer; import java.util.Objects; /** Represents an abstract event sent inside a {@link EventMessage} between client and server. */ @JsonDeserialize(using = EventDeserializer.class) +@JsonSerialize(using = EventSerializer.class) public abstract class Event { public EventType type;