fix: added entity to entityEvents as this is required for the SpawnEntityEvent
This commit is contained in:
parent
06af6b37f3
commit
091e6eb688
@ -1,6 +1,7 @@
|
|||||||
package uulm.teamname.marvelous.gamelibrary.events;
|
package uulm.teamname.marvelous.gamelibrary.events;
|
||||||
|
|
||||||
import uulm.teamname.marvelous.gamelibrary.IntVector2;
|
import uulm.teamname.marvelous.gamelibrary.IntVector2;
|
||||||
|
import uulm.teamname.marvelous.gamelibrary.entities.Entity;
|
||||||
import uulm.teamname.marvelous.gamelibrary.entities.EntityID;
|
import uulm.teamname.marvelous.gamelibrary.entities.EntityID;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@ -10,6 +11,7 @@ public class EntityEvent extends Event {
|
|||||||
public EntityID targetEntity = null;
|
public EntityID targetEntity = null;
|
||||||
public IntVector2 targetField = null;
|
public IntVector2 targetField = null;
|
||||||
public Integer amount = null;
|
public Integer amount = null;
|
||||||
|
public Entity entity = null;
|
||||||
|
|
||||||
public EntityEvent setTargetEntity(EntityID targetEntity) {
|
public EntityEvent setTargetEntity(EntityID targetEntity) {
|
||||||
this.targetEntity = targetEntity;
|
this.targetEntity = targetEntity;
|
||||||
|
Loading…
Reference in New Issue
Block a user