Entity IO fixes

This commit is contained in:
Anuken
2020-05-14 17:40:49 -04:00
parent 12f4d5a9a4
commit 6d23963e98
29 changed files with 226 additions and 109 deletions

View File

@@ -5,6 +5,8 @@ import arc.struct.*;
import mindustry.annotations.Annotations.*;
import mindustry.type.*;
import static mindustry.Vars.content;
@Serialize
public class Stats{
/** Items delivered to global resoure counter. Zones only. */
@@ -22,6 +24,9 @@ public class Stats{
/** Friendly buildings destroyed. */
public int buildingsDestroyed;
/** Item production means. */
private transient WindowedMean[] itemProduction = new WindowedMean[content.items().size];
public RankResult calculateRank(Sector zone, boolean launched){
float score = 0;