Progress on sector state
This commit is contained in:
@@ -3,7 +3,6 @@ package mindustry.io;
|
||||
import arc.struct.*;
|
||||
import mindustry.game.*;
|
||||
import mindustry.maps.*;
|
||||
import mindustry.type.*;
|
||||
|
||||
import static mindustry.Vars.maps;
|
||||
|
||||
@@ -15,13 +14,12 @@ public class SaveMeta{
|
||||
public Map map;
|
||||
public int wave;
|
||||
public Rules rules;
|
||||
public SectorInfo secinfo;
|
||||
public StringMap tags;
|
||||
public String[] mods;
|
||||
/** These are in items/second. */
|
||||
public ObjectFloatMap<Item> exportRates;
|
||||
public boolean hasProduction;
|
||||
|
||||
public SaveMeta(int version, long timestamp, long timePlayed, int build, String map, int wave, Rules rules, ObjectFloatMap<Item> exportRates, StringMap tags){
|
||||
public SaveMeta(int version, long timestamp, long timePlayed, int build, String map, int wave, Rules rules, SectorInfo secinfo, StringMap tags){
|
||||
this.version = version;
|
||||
this.build = build;
|
||||
this.timestamp = timestamp;
|
||||
@@ -31,8 +29,8 @@ public class SaveMeta{
|
||||
this.rules = rules;
|
||||
this.tags = tags;
|
||||
this.mods = JsonIO.read(String[].class, tags.get("mods", "[]"));
|
||||
this.exportRates = exportRates;
|
||||
this.secinfo = secinfo;
|
||||
|
||||
exportRates.each(e -> hasProduction |= e.value > 0.001f);
|
||||
secinfo.exportRates().each(e -> hasProduction |= e.value > 0.001f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user