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
fa9d703d
Commit
fa9d703d
authored
Apr 27, 2022
by
BaiSugar
Committed by
GitHub
Apr 27, 2022
Browse files
Merge branch 'Grasscutters:development' into development
parents
6a5d97a3
d1fc8c1f
Changes
279
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp
;
import
emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp
;
public
class
PacketPlayerGetForceQuitBanInfoRsp
extends
Genshin
Packet
{
public
class
PacketPlayerGetForceQuitBanInfoRsp
extends
Base
Packet
{
public
PacketPlayerGetForceQuitBanInfoRsp
(
int
retcode
)
{
public
PacketPlayerGetForceQuitBanInfoRsp
(
int
retcode
)
{
super
(
PacketOpcodes
.
PlayerGetForceQuitBanInfoRsp
);
super
(
PacketOpcodes
.
PlayerGetForceQuitBanInfoRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLevelRewardUpdateNotify.java
View file @
fa9d703d
...
@@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send;
import
java.util.Set
;
import
java.util.Set
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify
;
import
emu.grasscutter.net.proto.PlayerLevelRewardUpdateNotifyOuterClass.PlayerLevelRewardUpdateNotify
;
public
class
PacketPlayerLevelRewardUpdateNotify
extends
Genshin
Packet
{
public
class
PacketPlayerLevelRewardUpdateNotify
extends
Base
Packet
{
public
PacketPlayerLevelRewardUpdateNotify
(
Set
<
Integer
>
rewardedLevels
)
{
public
PacketPlayerLevelRewardUpdateNotify
(
Set
<
Integer
>
rewardedLevels
)
{
super
(
PacketOpcodes
.
PlayerLevelRewardUpdateNotify
);
super
(
PacketOpcodes
.
PlayerLevelRewardUpdateNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java
View file @
fa9d703d
...
@@ -2,7 +2,7 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,7 +2,7 @@ package emu.grasscutter.server.packet.send;
import
com.google.protobuf.ByteString
;
import
com.google.protobuf.ByteString
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp
;
import
emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp
;
import
emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass
;
import
emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass
;
...
@@ -14,7 +14,7 @@ import java.io.File;
...
@@ -14,7 +14,7 @@ import java.io.File;
import
java.net.URL
;
import
java.net.URL
;
import
java.util.Base64
;
import
java.util.Base64
;
public
class
PacketPlayerLoginRsp
extends
Genshin
Packet
{
public
class
PacketPlayerLoginRsp
extends
Base
Packet
{
private
static
QueryCurrRegionHttpRspOuterClass
.
QueryCurrRegionHttpRsp
regionCache
;
private
static
QueryCurrRegionHttpRspOuterClass
.
QueryCurrRegionHttpRsp
regionCache
;
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.game.props.PlayerProperty
;
import
emu.grasscutter.game.props.PlayerProperty
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify
;
import
emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify
;
import
emu.grasscutter.utils.ProtoHelper
;
import
emu.grasscutter.utils.ProtoHelper
;
public
class
PacketPlayerPropNotify
extends
Genshin
Packet
{
public
class
PacketPlayerPropNotify
extends
Base
Packet
{
public
PacketPlayerPropNotify
(
Genshin
Player
player
,
PlayerProperty
prop
)
{
public
PacketPlayerPropNotify
(
Player
player
,
PlayerProperty
prop
)
{
super
(
PacketOpcodes
.
PlayerPropNotify
);
super
(
PacketOpcodes
.
PlayerPropNotify
);
this
.
buildHeader
(
0
);
this
.
buildHeader
(
0
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
public
class
PacketPlayerSetPauseRsp
extends
Genshin
Packet
{
public
class
PacketPlayerSetPauseRsp
extends
Base
Packet
{
public
PacketPlayerSetPauseRsp
(
int
clientSequence
)
{
public
PacketPlayerSetPauseRsp
(
int
clientSequence
)
{
super
(
PacketOpcodes
.
PlayerSetPauseRsp
);
super
(
PacketOpcodes
.
PlayerSetPauseRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.G
enshin
Constants
;
import
emu.grasscutter.G
ame
Constants
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.game.
GenshinPlayer
;
import
emu.grasscutter.game.
inventory.GameItem
;
import
emu.grasscutter.game.
inventory.GenshinItem
;
import
emu.grasscutter.game.
player.Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ItemOuterClass.Item
;
import
emu.grasscutter.net.proto.ItemOuterClass.Item
;
import
emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify
;
import
emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify
;
import
emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType
;
import
emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType
;
public
class
PacketPlayerStoreNotify
extends
Genshin
Packet
{
public
class
PacketPlayerStoreNotify
extends
Base
Packet
{
public
PacketPlayerStoreNotify
(
Genshin
Player
player
)
{
public
PacketPlayerStoreNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
PlayerStoreNotify
);
super
(
PacketOpcodes
.
PlayerStoreNotify
);
this
.
buildHeader
(
2
);
this
.
buildHeader
(
2
);
...
@@ -21,7 +21,7 @@ public class PacketPlayerStoreNotify extends GenshinPacket {
...
@@ -21,7 +21,7 @@ public class PacketPlayerStoreNotify extends GenshinPacket {
.
setStoreType
(
StoreType
.
STORE_PACK
)
.
setStoreType
(
StoreType
.
STORE_PACK
)
.
setWeightLimit
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
InventoryLimitAll
);
.
setWeightLimit
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
InventoryLimitAll
);
for
(
G
enshin
Item
item
:
player
.
getInventory
())
{
for
(
G
ame
Item
item
:
player
.
getInventory
())
{
Item
itemProto
=
item
.
toProto
();
Item
itemProto
=
item
.
toProto
();
p
.
addItemList
(
itemProto
);
p
.
addItemList
(
itemProto
);
}
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify
;
import
emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify
;
public
class
PacketPlayerTimeNotify
extends
Genshin
Packet
{
public
class
PacketPlayerTimeNotify
extends
Base
Packet
{
public
PacketPlayerTimeNotify
(
Genshin
Player
player
)
{
public
PacketPlayerTimeNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
PlayerTimeNotify
);
super
(
PacketOpcodes
.
PlayerTimeNotify
);
PlayerTimeNotify
proto
=
PlayerTimeNotify
.
newBuilder
()
PlayerTimeNotify
proto
=
PlayerTimeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp
;
import
emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp
;
public
class
PacketPostEnterSceneRsp
extends
Genshin
Packet
{
public
class
PacketPostEnterSceneRsp
extends
Base
Packet
{
public
PacketPostEnterSceneRsp
(
Genshin
Player
player
)
{
public
PacketPostEnterSceneRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
PostEnterSceneRsp
);
super
(
PacketOpcodes
.
PostEnterSceneRsp
);
PostEnterSceneRsp
p
=
PostEnterSceneRsp
.
newBuilder
()
PostEnterSceneRsp
p
=
PostEnterSceneRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo
;
import
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo
;
import
emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify
;
import
emu.grasscutter.net.proto.PrivateChatNotifyOuterClass.PrivateChatNotify
;
public
class
PacketPrivateChatNotify
extends
Genshin
Packet
{
public
class
PacketPrivateChatNotify
extends
Base
Packet
{
public
PacketPrivateChatNotify
(
int
senderId
,
int
recvId
,
String
message
)
{
public
PacketPrivateChatNotify
(
int
senderId
,
int
recvId
,
String
message
)
{
super
(
PacketOpcodes
.
PrivateChatNotify
);
super
(
PacketOpcodes
.
PrivateChatNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify
;
import
emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify
;
public
class
PacketProudSkillChangeNotify
extends
Genshin
Packet
{
public
class
PacketProudSkillChangeNotify
extends
Base
Packet
{
public
PacketProudSkillChangeNotify
(
Genshin
Avatar
avatar
)
{
public
PacketProudSkillChangeNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
ProudSkillChangeNotify
);
super
(
PacketOpcodes
.
ProudSkillChangeNotify
);
ProudSkillChangeNotify
proto
=
ProudSkillChangeNotify
.
newBuilder
()
ProudSkillChangeNotify
proto
=
ProudSkillChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify
;
import
emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify
;
public
class
PacketProudSkillExtraLevelNotify
extends
Genshin
Packet
{
public
class
PacketProudSkillExtraLevelNotify
extends
Base
Packet
{
public
PacketProudSkillExtraLevelNotify
(
Genshin
Avatar
avatar
,
int
talentIndex
)
{
public
PacketProudSkillExtraLevelNotify
(
Avatar
avatar
,
int
talentIndex
)
{
super
(
PacketOpcodes
.
ProudSkillExtraLevelNotify
);
super
(
PacketOpcodes
.
ProudSkillExtraLevelNotify
);
ProudSkillExtraLevelNotify
proto
=
ProudSkillExtraLevelNotify
.
newBuilder
()
ProudSkillExtraLevelNotify
proto
=
ProudSkillExtraLevelNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp
;
import
emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp
;
public
class
PacketPullPrivateChatRsp
extends
Genshin
Packet
{
public
class
PacketPullPrivateChatRsp
extends
Base
Packet
{
public
PacketPullPrivateChatRsp
()
{
public
PacketPullPrivateChatRsp
()
{
super
(
PacketOpcodes
.
PullPrivateChatRsp
);
super
(
PacketOpcodes
.
PullPrivateChatRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.Config.GameServerOptions
;
import
emu.grasscutter.Config.GameServerOptions
;
import
emu.grasscutter.GenshinConstants
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.GameConstants
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.game.GenshinPlayer
;
import
emu.grasscutter.net.packet.BasePacket
;
import
emu.grasscutter.net.packet.GenshinPacket
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo
;
import
emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo
;
import
emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp
;
import
emu.grasscutter.net.proto.PullRecentChatRspOuterClass.PullRecentChatRsp
;
import
emu.grasscutter.utils.Utils
;
import
emu.grasscutter.utils.Utils
;
public
class
PacketPullRecentChatRsp
extends
Genshin
Packet
{
public
class
PacketPullRecentChatRsp
extends
Base
Packet
{
public
PacketPullRecentChatRsp
(
Genshin
Player
player
)
{
public
PacketPullRecentChatRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
PullRecentChatRsp
);
super
(
PacketOpcodes
.
PullRecentChatRsp
);
GameServerOptions
serverOptions
=
Grasscutter
.
getConfig
().
getGameServerOptions
();
GameServerOptions
serverOptions
=
Grasscutter
.
getConfig
().
getGameServerOptions
();
...
@@ -20,7 +20,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket {
...
@@ -20,7 +20,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket {
if
(
serverOptions
.
WelcomeEmotes
!=
null
&&
serverOptions
.
WelcomeEmotes
.
length
>
0
)
{
if
(
serverOptions
.
WelcomeEmotes
!=
null
&&
serverOptions
.
WelcomeEmotes
.
length
>
0
)
{
ChatInfo
welcomeEmote
=
ChatInfo
.
newBuilder
()
ChatInfo
welcomeEmote
=
ChatInfo
.
newBuilder
()
.
setTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
))
.
setTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
))
.
setUid
(
G
enshin
Constants
.
SERVER_CONSOLE_UID
)
.
setUid
(
G
ame
Constants
.
SERVER_CONSOLE_UID
)
.
setToUid
(
player
.
getUid
())
.
setToUid
(
player
.
getUid
())
.
setIcon
(
serverOptions
.
WelcomeEmotes
[
Utils
.
randomRange
(
0
,
serverOptions
.
WelcomeEmotes
.
length
-
1
)])
.
setIcon
(
serverOptions
.
WelcomeEmotes
[
Utils
.
randomRange
(
0
,
serverOptions
.
WelcomeEmotes
.
length
-
1
)])
.
build
();
.
build
();
...
@@ -31,7 +31,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket {
...
@@ -31,7 +31,7 @@ public class PacketPullRecentChatRsp extends GenshinPacket {
if
(
serverOptions
.
WelcomeMotd
!=
null
&&
serverOptions
.
WelcomeMotd
.
length
()
>
0
)
{
if
(
serverOptions
.
WelcomeMotd
!=
null
&&
serverOptions
.
WelcomeMotd
.
length
()
>
0
)
{
ChatInfo
welcomeMotd
=
ChatInfo
.
newBuilder
()
ChatInfo
welcomeMotd
=
ChatInfo
.
newBuilder
()
.
setTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
))
.
setTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
))
.
setUid
(
G
enshin
Constants
.
SERVER_CONSOLE_UID
)
.
setUid
(
G
ame
Constants
.
SERVER_CONSOLE_UID
)
.
setToUid
(
player
.
getUid
())
.
setToUid
(
player
.
getUid
())
.
setText
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
WelcomeMotd
)
.
setText
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
WelcomeMotd
)
.
build
();
.
build
();
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java
View file @
fa9d703d
...
@@ -2,14 +2,14 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,14 +2,14 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp
;
import
emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp
;
public
class
PacketReliquaryUpgradeRsp
extends
Genshin
Packet
{
public
class
PacketReliquaryUpgradeRsp
extends
Base
Packet
{
public
PacketReliquaryUpgradeRsp
(
G
enshin
Item
relic
,
int
rate
,
int
oldLevel
,
List
<
Integer
>
oldAppendPropIdList
)
{
public
PacketReliquaryUpgradeRsp
(
G
ame
Item
relic
,
int
rate
,
int
oldLevel
,
List
<
Integer
>
oldAppendPropIdList
)
{
super
(
PacketOpcodes
.
ReliquaryUpgradeRsp
);
super
(
PacketOpcodes
.
ReliquaryUpgradeRsp
);
ReliquaryUpgradeRsp
proto
=
ReliquaryUpgradeRsp
.
newBuilder
()
ReliquaryUpgradeRsp
proto
=
ReliquaryUpgradeRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.game.World
;
import
emu.grasscutter.game.
world.
World
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify
;
import
emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify
;
public
class
PacketSceneAreaWeatherNotify
extends
Genshin
Packet
{
public
class
PacketSceneAreaWeatherNotify
extends
Base
Packet
{
public
PacketSceneAreaWeatherNotify
(
Genshin
Player
player
)
{
public
PacketSceneAreaWeatherNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
SceneAreaWeatherNotify
);
super
(
PacketOpcodes
.
SceneAreaWeatherNotify
);
SceneAreaWeatherNotify
proto
=
SceneAreaWeatherNotify
.
newBuilder
()
SceneAreaWeatherNotify
proto
=
SceneAreaWeatherNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java
View file @
fa9d703d
...
@@ -2,16 +2,16 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,16 +2,16 @@ package emu.grasscutter.server.packet.send;
import
java.util.Collection
;
import
java.util.Collection
;
import
emu.grasscutter.game.
G
en
shinPlayer
;
import
emu.grasscutter.game.en
tity.GameEntity
;
import
emu.grasscutter.game.
entity.GenshinEntity
;
import
emu.grasscutter.game.
player.Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify
;
import
emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify
;
import
emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType
;
import
emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType
;
public
class
PacketSceneEntityAppearNotify
extends
Genshin
Packet
{
public
class
PacketSceneEntityAppearNotify
extends
Base
Packet
{
public
PacketSceneEntityAppearNotify
(
G
enshin
Entity
entity
)
{
public
PacketSceneEntityAppearNotify
(
G
ame
Entity
entity
)
{
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
...
@@ -21,7 +21,7 @@ public class PacketSceneEntityAppearNotify extends GenshinPacket {
...
@@ -21,7 +21,7 @@ public class PacketSceneEntityAppearNotify extends GenshinPacket {
this
.
setData
(
proto
.
build
());
this
.
setData
(
proto
.
build
());
}
}
public
PacketSceneEntityAppearNotify
(
G
enshin
Entity
entity
,
VisionType
vision
,
int
param
)
{
public
PacketSceneEntityAppearNotify
(
G
ame
Entity
entity
,
VisionType
vision
,
int
param
)
{
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
...
@@ -32,11 +32,11 @@ public class PacketSceneEntityAppearNotify extends GenshinPacket {
...
@@ -32,11 +32,11 @@ public class PacketSceneEntityAppearNotify extends GenshinPacket {
this
.
setData
(
proto
.
build
());
this
.
setData
(
proto
.
build
());
}
}
public
PacketSceneEntityAppearNotify
(
Genshin
Player
player
)
{
public
PacketSceneEntityAppearNotify
(
Player
player
)
{
this
(
player
.
getTeamManager
().
getCurrentAvatarEntity
());
this
(
player
.
getTeamManager
().
getCurrentAvatarEntity
());
}
}
public
PacketSceneEntityAppearNotify
(
Collection
<
G
enshin
Entity
>
entities
,
VisionType
visionType
)
{
public
PacketSceneEntityAppearNotify
(
Collection
<
G
ame
Entity
>
entities
,
VisionType
visionType
)
{
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
super
(
PacketOpcodes
.
SceneEntityAppearNotify
,
true
);
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
SceneEntityAppearNotify
.
Builder
proto
=
SceneEntityAppearNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java
View file @
fa9d703d
...
@@ -3,15 +3,15 @@ package emu.grasscutter.server.packet.send;
...
@@ -3,15 +3,15 @@ package emu.grasscutter.server.packet.send;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.game.entity.G
enshin
Entity
;
import
emu.grasscutter.game.entity.G
ame
Entity
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify
;
import
emu.grasscutter.net.proto.SceneEntityDisappearNotifyOuterClass.SceneEntityDisappearNotify
;
import
emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType
;
import
emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType
;
public
class
PacketSceneEntityDisappearNotify
extends
Genshin
Packet
{
public
class
PacketSceneEntityDisappearNotify
extends
Base
Packet
{
public
PacketSceneEntityDisappearNotify
(
G
enshin
Entity
entity
,
VisionType
disappearType
)
{
public
PacketSceneEntityDisappearNotify
(
G
ame
Entity
entity
,
VisionType
disappearType
)
{
super
(
PacketOpcodes
.
SceneEntityDisappearNotify
);
super
(
PacketOpcodes
.
SceneEntityDisappearNotify
);
SceneEntityDisappearNotify
proto
=
SceneEntityDisappearNotify
.
newBuilder
()
SceneEntityDisappearNotify
proto
=
SceneEntityDisappearNotify
.
newBuilder
()
...
@@ -22,7 +22,7 @@ public class PacketSceneEntityDisappearNotify extends GenshinPacket {
...
@@ -22,7 +22,7 @@ public class PacketSceneEntityDisappearNotify extends GenshinPacket {
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
public
PacketSceneEntityDisappearNotify
(
Collection
<
G
enshin
Entity
>
entities
,
VisionType
disappearType
)
{
public
PacketSceneEntityDisappearNotify
(
Collection
<
G
ame
Entity
>
entities
,
VisionType
disappearType
)
{
super
(
PacketOpcodes
.
SceneEntityDisappearNotify
);
super
(
PacketOpcodes
.
SceneEntityDisappearNotify
);
SceneEntityDisappearNotify
.
Builder
proto
=
SceneEntityDisappearNotify
.
newBuilder
()
SceneEntityDisappearNotify
.
Builder
proto
=
SceneEntityDisappearNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDrownRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.BasePacket
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SceneEntityDrownRspOuterClass.SceneEntityDrownRsp
;
public
class
PacketSceneEntityDrownRsp
extends
BasePacket
{
public
PacketSceneEntityDrownRsp
(
int
entityId
)
{
super
(
PacketOpcodes
.
SceneEntityDrownRsp
);
SceneEntityDrownRsp
proto
=
SceneEntityDrownRsp
.
newBuilder
().
setEntityId
(
entityId
).
build
();
this
.
setData
(
proto
);
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo
;
import
emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo
;
import
emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify
;
import
emu.grasscutter.net.proto.SceneEntityMoveNotifyOuterClass.SceneEntityMoveNotify
;
public
class
PacketSceneEntityMoveNotify
extends
Genshin
Packet
{
public
class
PacketSceneEntityMoveNotify
extends
Base
Packet
{
public
PacketSceneEntityMoveNotify
(
EntityMoveInfo
moveInfo
)
{
public
PacketSceneEntityMoveNotify
(
EntityMoveInfo
moveInfo
)
{
super
(
PacketOpcodes
.
SceneEntityMoveNotify
,
true
);
super
(
PacketOpcodes
.
SceneEntityMoveNotify
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp
;
import
emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp
;
public
class
PacketSceneInitFinishRsp
extends
Genshin
Packet
{
public
class
PacketSceneInitFinishRsp
extends
Base
Packet
{
public
PacketSceneInitFinishRsp
(
Genshin
Player
player
)
{
public
PacketSceneInitFinishRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
SceneInitFinishRsp
,
11
);
super
(
PacketOpcodes
.
SceneInitFinishRsp
,
11
);
SceneInitFinishRsp
p
=
SceneInitFinishRsp
.
newBuilder
().
setEnterSceneToken
(
player
.
getEnterSceneToken
()).
build
();
SceneInitFinishRsp
p
=
SceneInitFinishRsp
.
newBuilder
().
setEnterSceneToken
(
player
.
getEnterSceneToken
()).
build
();
...
...
Prev
1
…
8
9
10
11
12
13
14
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