Autogeneration of some IO code

This commit is contained in:
Anuken
2020-02-13 13:30:30 -05:00
parent 47f075133f
commit ad248e2e20
40 changed files with 163 additions and 74 deletions

View File

@@ -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;
}

View File

@@ -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;
}