Autogeneration of some IO code
This commit is contained in:
@@ -5,7 +5,6 @@ import mindustry.core.GameState.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.entities.units.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
@@ -328,9 +327,9 @@ public class EventType{
|
||||
//TODO rename
|
||||
public static class MechChangeEvent{
|
||||
public final Playerc player;
|
||||
public final UnitDef mech;
|
||||
public final UnitType mech;
|
||||
|
||||
public MechChangeEvent(Playerc player, UnitDef mech){
|
||||
public MechChangeEvent(Playerc player, UnitType mech){
|
||||
this.player = player;
|
||||
this.mech = mech;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ public class SpawnGroup implements Serializable{
|
||||
public static final int never = Integer.MAX_VALUE;
|
||||
|
||||
/** The unit type spawned */
|
||||
public UnitDef type;
|
||||
public UnitType type;
|
||||
/** When this spawn should end */
|
||||
public int end = never;
|
||||
/** When this spawn should start */
|
||||
@@ -37,7 +37,7 @@ public class SpawnGroup implements Serializable{
|
||||
/** Items this unit spawns with. Null to disable. */
|
||||
public ItemStack items;
|
||||
|
||||
public SpawnGroup(UnitDef type){
|
||||
public SpawnGroup(UnitType type){
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user