API: add DropDownEvent (#6611)

* API: add DropDownEvent

(cherry picked from commit d44a45c916da391200f1ffad3f98b15a99abb1aa)

* request changes
This commit is contained in:
WayZer
2022-03-03 00:26:37 +08:00
committed by GitHub
parent 6c59018d9f
commit 4ff697e19b
2 changed files with 20 additions and 0 deletions

View File

@@ -242,6 +242,24 @@ public class EventType{
}
}
public static class PayloadDropEvent{
public final Unit carrier;
public final @Nullable Unit unit;
public final @Nullable Building build;
public PayloadDropEvent(Unit carrier, Unit unit){
this.carrier = carrier;
this.unit = unit;
this.build = null;
}
public PayloadDropEvent(Unit carrier, Building build){
this.carrier = carrier;
this.build = build;
this.unit = null;
}
}
public static class UnitControlEvent{
public final Player player;
public final @Nullable Unit unit;