mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
Update score boss control id properly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user