Update score boss control id properly

This commit is contained in:
Melledy
2025-12-22 17:54:36 -08:00
parent 53839b48ca
commit b4948212ce
18 changed files with 60 additions and 24 deletions
@@ -2,6 +2,7 @@ package emu.nebula.data.resources;
import emu.nebula.data.BaseDef;
import emu.nebula.data.ResourceType;
import emu.nebula.util.Utils;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
import lombok.Getter;
@@ -9,10 +10,21 @@ import lombok.Getter;
@ResourceType(name = "ScoreBossControl.json")
public class ScoreBossControlDef extends BaseDef {
private int Id;
private String StartTime;
private String EndTime;
private IntOpenHashSet LevelGroup;
private transient long startDate;
private transient long endDate;
@Override
public int getId() {
return Id;
}
@Override
public void onLoad() {
this.startDate = Utils.dateToMilliseconds(this.StartTime) / 1000;
this.endDate = Utils.dateToMilliseconds(this.EndTime) / 1000;
}
}