Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
8484a535
Commit
8484a535
authored
Jul 01, 2022
by
GanyusLeftHorn
Committed by
Melledy
Jul 01, 2022
Browse files
Load recipe excels.
parent
156102ac
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/GameData.java
View file @
8484a535
...
@@ -98,6 +98,7 @@ public class GameData {
...
@@ -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 {
...
@@ -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
;
}
}
}
src/main/java/emu/grasscutter/data/excels/CookRecipeData.java
0 → 100644
View file @
8484a535
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
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment