fix: added entity to entityEvents as this is required for the SpawnEntityEvent

This commit is contained in:
Yannik Bretschneider 2021-05-02 02:58:02 +02:00
parent 06af6b37f3
commit 091e6eb688

View File

@ -1,6 +1,7 @@
package uulm.teamname.marvelous.gamelibrary.events;
import uulm.teamname.marvelous.gamelibrary.IntVector2;
import uulm.teamname.marvelous.gamelibrary.entities.Entity;
import uulm.teamname.marvelous.gamelibrary.entities.EntityID;
import java.util.Objects;
@ -10,6 +11,7 @@ public class EntityEvent extends Event {
public EntityID targetEntity = null;
public IntVector2 targetField = null;
public Integer amount = null;
public Entity entity = null;
public EntityEvent setTargetEntity(EntityID targetEntity) {
this.targetEntity = targetEntity;