feat: wrote EntityDeserializer

This commit is contained in:
2021-05-11 21:17:55 +02:00
parent 28ac25fa55
commit f7b1514491
3 changed files with 129 additions and 0 deletions

View File

@ -1,10 +1,13 @@
package uulm.teamname.marvelous.gamelibrary.entities;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import uulm.teamname.marvelous.gamelibrary.IntVector2;
import uulm.teamname.marvelous.gamelibrary.json.ingame.EntityDeserializer;
import java.util.Objects;
/** Represents an abstract entity. */
@JsonDeserialize(using = EntityDeserializer.class)
public abstract class Entity {
/** Whether or not the entity is currently active in the game */
protected boolean active = true;