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
06a50365
Commit
06a50365
authored
Apr 19, 2022
by
Melledy
Browse files
Merge branch 'dev-scene'
parents
2d2013df
d9fc1595
Changes
64
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java
View file @
06a50365
...
@@ -17,7 +17,7 @@ public class PacketWorldPlayerInfoNotify extends GenshinPacket {
...
@@ -17,7 +17,7 @@ public class PacketWorldPlayerInfoNotify extends GenshinPacket {
GenshinPlayer
p
=
world
.
getPlayers
().
get
(
i
);
GenshinPlayer
p
=
world
.
getPlayers
().
get
(
i
);
proto
.
addPlayerInfoList
(
p
.
getOnlinePlayerInfo
());
proto
.
addPlayerInfoList
(
p
.
getOnlinePlayerInfo
());
proto
.
addPlayerUidList
(
p
.
get
I
d
());
proto
.
addPlayerUidList
(
p
.
get
Ui
d
());
}
}
this
.
setData
(
proto
.
build
());
this
.
setData
(
proto
.
build
());
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java
View file @
06a50365
...
@@ -17,7 +17,7 @@ public class PacketWorldPlayerRTTNotify extends GenshinPacket {
...
@@ -17,7 +17,7 @@ public class PacketWorldPlayerRTTNotify extends GenshinPacket {
for
(
GenshinPlayer
player
:
world
.
getPlayers
())
{
for
(
GenshinPlayer
player
:
world
.
getPlayers
())
{
proto
.
addPlayerRttList
(
proto
.
addPlayerRttList
(
PlayerRTTInfo
.
newBuilder
()
PlayerRTTInfo
.
newBuilder
()
.
setUid
(
player
.
get
I
d
())
.
setUid
(
player
.
get
Ui
d
())
.
setRtt
(
10
)
// TODO - put player ping here
.
setRtt
(
10
)
// TODO - put player ping here
);
);
}
}
...
...
src/main/java/emu/grasscutter/tools/Tools.java
View file @
06a50365
...
@@ -20,6 +20,7 @@ import emu.grasscutter.data.ResourceLoader;
...
@@ -20,6 +20,7 @@ import emu.grasscutter.data.ResourceLoader;
import
emu.grasscutter.data.def.AvatarData
;
import
emu.grasscutter.data.def.AvatarData
;
import
emu.grasscutter.data.def.ItemData
;
import
emu.grasscutter.data.def.ItemData
;
import
emu.grasscutter.data.def.MonsterData
;
import
emu.grasscutter.data.def.MonsterData
;
import
emu.grasscutter.data.def.SceneData
;
public
final
class
Tools
{
public
final
class
Tools
{
...
@@ -63,6 +64,17 @@ public final class Tools {
...
@@ -63,6 +64,17 @@ public final class Tools {
writer
.
println
();
writer
.
println
();
writer
.
println
(
"// Scenes"
);
list
=
new
ArrayList
<>(
GenshinData
.
getSceneDataMap
().
keySet
());
Collections
.
sort
(
list
);
for
(
Integer
id
:
list
)
{
SceneData
data
=
GenshinData
.
getSceneDataMap
().
get
(
id
);
writer
.
println
(
data
.
getId
()
+
" : "
+
data
.
getScriptData
());
}
writer
.
println
();
writer
.
println
(
"// Monsters"
);
writer
.
println
(
"// Monsters"
);
list
=
new
ArrayList
<>(
GenshinData
.
getMonsterDataMap
().
keySet
());
list
=
new
ArrayList
<>(
GenshinData
.
getMonsterDataMap
().
keySet
());
Collections
.
sort
(
list
);
Collections
.
sort
(
list
);
...
...
src/main/java/emu/grasscutter/utils/Utils.java
View file @
06a50365
...
@@ -165,8 +165,6 @@ public final class Utils {
...
@@ -165,8 +165,6 @@ public final class Utils {
// Check for game data.
// Check for game data.
if
(!
fileExists
(
dataFolder
))
if
(!
fileExists
(
dataFolder
))
createFolder
(
dataFolder
);
createFolder
(
dataFolder
);
if
(!
fileExists
(
dataFolder
+
"AbilityEmbryos.json"
))
copyFromResources
(
"data/AbilityEmbryos.json"
,
dataFolder
);
if
(
exit
)
System
.
exit
(
1
);
if
(
exit
)
System
.
exit
(
1
);
}
}
...
...
Prev
1
2
3
4
Next
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