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
e5498e37
Commit
e5498e37
authored
Jun 04, 2022
by
ImmuState
Committed by
Melledy
Jun 08, 2022
Browse files
Add handling for ForgeExcelConfigData.
parent
9d6bc2a9
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/GameData.java
View file @
e5498e37
...
...
@@ -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
<>();
...
...
src/main/java/emu/grasscutter/data/common/MaterialItemsData.java
0 → 100644
View file @
e5498e37
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
;
}
}
src/main/java/emu/grasscutter/data/excels/ForgeData.java
0 → 100644
View file @
e5498e37
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
()
{
}
}
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