Add handling for ForgeExcelConfigData.

This commit is contained in:
ImmuState 2022-06-04 12:05:03 -07:00 committed by Melledy
parent d7a4209138
commit 4ffda39b12
3 changed files with 86 additions and 0 deletions

View File

@ -87,6 +87,7 @@ public class GameData {
private static final Int2ObjectMap<TowerFloorData> towerFloorDataMap = new Int2ObjectOpenHashMap<>();
private static final Int2ObjectMap<TowerLevelData> towerLevelDataMap = new Int2ObjectOpenHashMap<>();
private static final Int2ObjectMap<TowerScheduleData> towerScheduleDataMap = new Int2ObjectOpenHashMap<>();
private static final Int2ObjectMap<ForgeData> forgeDataMap = new Int2ObjectOpenHashMap<>();
// Cache
private static Map<Integer, List<Integer>> fetters = new HashMap<>();

View File

@ -0,0 +1,22 @@
package emu.grasscutter.data.common;
import java.util.List;
public class MaterialItemsData {
private int id;
private int count;
public int getId() {
return this.id;
}
public void setId(int value) {
this.id = value;
}
public int getCount() {
return this.count;
}
public void setCount(int value) {
this.count = value;
}
}

View File

@ -0,0 +1,63 @@
package emu.grasscutter.data.excels;
import java.util.List;
import emu.grasscutter.data.GameResource;
import emu.grasscutter.data.ResourceType;
import emu.grasscutter.data.ResourceType.LoadPriority;
import emu.grasscutter.data.common.MaterialItemsData;
import emu.grasscutter.data.common.OpenCondData;
@ResourceType(name = {"ForgeExcelConfigData.json"}, loadPriority = LoadPriority.HIGHEST)
public class ForgeData extends GameResource {
private int id;
private int playerLevel;
private int forgeType;
private int resultItemCount;
private int forgeTime;
private int queueNum;
private int scoinCost;
private int priority;
private List<MaterialItemsData> materialItems;
@Override
public int getId() {
return this.id;
}
public int getPlayerLevel() {
return playerLevel;
}
public int getForgeType() {
return forgeType;
}
public int getResultItemCount() {
return resultItemCount;
}
public int getForgeTime() {
return forgeTime;
}
public int getQueueNum() {
return queueNum;
}
public int getScoinCost() {
return scoinCost;
}
public int getPriority() {
return priority;
}
public List<MaterialItemsData> getMaterialItems() {
return materialItems;
}
@Override
public void onLoad() {
}
}