mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 18:12:53 +08:00
Load recipe excels.
This commit is contained in:
parent
156102ac56
commit
8484a535f4
@ -98,6 +98,7 @@ public class GameData {
|
|||||||
private static final Int2ObjectMap<WeatherData> weatherDataMap = new Int2ObjectOpenHashMap<>();
|
private static final Int2ObjectMap<WeatherData> weatherDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
private static final Int2ObjectMap<BattlePassMissionData> battlePassMissionDataMap = new Int2ObjectOpenHashMap<>();
|
private static final Int2ObjectMap<BattlePassMissionData> battlePassMissionDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
private static final Int2ObjectMap<BattlePassRewardData> battlePassRewardDataMap = new Int2ObjectOpenHashMap<>();
|
private static final Int2ObjectMap<BattlePassRewardData> battlePassRewardDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
|
private static final Int2ObjectMap<CookRecipeData> cookRecipeDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
|
|
||||||
@Getter private static final Int2ObjectMap<ActivityData> activityDataMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static final Int2ObjectMap<ActivityData> activityDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
@Getter private static final Int2ObjectMap<ActivityWatcherData> activityWatcherDataMap = new Int2ObjectOpenHashMap<>();
|
@Getter private static final Int2ObjectMap<ActivityWatcherData> activityWatcherDataMap = new Int2ObjectOpenHashMap<>();
|
||||||
@ -436,4 +437,8 @@ public class GameData {
|
|||||||
public static Int2ObjectMap<BattlePassRewardData> getBattlePassRewardDataMap() {
|
public static Int2ObjectMap<BattlePassRewardData> getBattlePassRewardDataMap() {
|
||||||
return battlePassRewardDataMap;
|
return battlePassRewardDataMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Int2ObjectMap<CookRecipeData> getCookRecipeDataMap() {
|
||||||
|
return cookRecipeDataMap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
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.ItemParamData;
|
||||||
|
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
|
||||||
|
|
||||||
|
@ResourceType(name = {"CookRecipeExcelConfigData.json"}, loadPriority = LoadPriority.LOW)
|
||||||
|
public class CookRecipeData extends GameResource {
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int rankLevel;
|
||||||
|
private boolean isDefaultUnlocked;
|
||||||
|
private int maxProficiency;
|
||||||
|
|
||||||
|
private List<ItemParamData> qualityOutputVec;
|
||||||
|
private List<ItemParamData> inputVec;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getRankLevel() {
|
||||||
|
return this.rankLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDefaultUnlocked() {
|
||||||
|
return this.isDefaultUnlocked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getMaxProficiency() {
|
||||||
|
return this.maxProficiency;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ItemParamData> getQualityOutputVec() {
|
||||||
|
return this.qualityOutputVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ItemParamData> getInputVec() {
|
||||||
|
return this.inputVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLoad() {
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user