Add unitSpawnEvent (#5876)

This commit is contained in:
Darkness6030
2021-08-28 10:53:19 -04:00
committed by GitHub
parent 800f0f4511
commit d254d971a9
3 changed files with 11 additions and 0 deletions
+9
View File
@@ -428,6 +428,15 @@ public class EventType{
}
}
/** Called when a unit is spawned by wave. */
public static class UnitSpawnEvent{
public final Unit unit;
public UnitSpawnEvent(Unit unit) {
this.unit = unit;
}
}
/** Called when a unit is dumped from any payload block. */
public static class UnitUnloadEvent{
public final Unit unit;