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
1c36f078
Commit
1c36f078
authored
Apr 26, 2022
by
Melledy
Browse files
Renamed all references to a certain game
parent
6b8902be
Changes
270
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java
View file @
1c36f078
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.GetAuthkeyRspOuterClass.GetAuthkeyRsp
;
import
emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketGetAuthkeyRsp
extends
Genshin
Packet
{
public
class
PacketGetAuthkeyRsp
extends
Base
Packet
{
public
PacketGetAuthkeyRsp
()
{
public
PacketGetAuthkeyRsp
()
{
super
(
PacketOpcodes
.
GetAuthkeyRsp
);
super
(
PacketOpcodes
.
GetAuthkeyRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.gacha.GachaManager
;
import
emu.grasscutter.game.gacha.GachaManager
;
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
PacketGetGachaInfoRsp
extends
Genshin
Packet
{
public
class
PacketGetGachaInfoRsp
extends
Base
Packet
{
public
PacketGetGachaInfoRsp
(
GachaManager
manager
)
{
public
PacketGetGachaInfoRsp
(
GachaManager
manager
)
{
super
(
PacketOpcodes
.
GetGachaInfoRsp
);
super
(
PacketOpcodes
.
GetGachaInfoRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetMailItemRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.data.G
enshin
Data
;
import
emu.grasscutter.data.G
ame
Data
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.Mail
;
import
emu.grasscutter.game.Mail
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.game.props.ActionReason
;
import
emu.grasscutter.game.props.ActionReason
;
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.EquipParamOuterClass
;
import
emu.grasscutter.net.proto.EquipParamOuterClass
;
import
emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp
;
import
emu.grasscutter.net.proto.GetMailItemRspOuterClass.GetMailItemRsp
;
...
@@ -14,9 +14,9 @@ import java.util.ArrayList;
...
@@ -14,9 +14,9 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
public
class
PacketGetMailItemRsp
extends
Genshin
Packet
{
public
class
PacketGetMailItemRsp
extends
Base
Packet
{
public
PacketGetMailItemRsp
(
Genshin
Player
player
,
List
<
Integer
>
mailList
)
{
public
PacketGetMailItemRsp
(
Player
player
,
List
<
Integer
>
mailList
)
{
super
(
PacketOpcodes
.
GetMailItemRsp
);
super
(
PacketOpcodes
.
GetMailItemRsp
);
List
<
Mail
>
claimedMessages
=
new
ArrayList
<>();
List
<
Mail
>
claimedMessages
=
new
ArrayList
<>();
...
@@ -50,11 +50,11 @@ public class PacketGetMailItemRsp extends GenshinPacket {
...
@@ -50,11 +50,11 @@ public class PacketGetMailItemRsp extends GenshinPacket {
item
.
setPromoteLevel
(
promoteLevel
);
item
.
setPromoteLevel
(
promoteLevel
);
claimedItems
.
add
(
item
.
build
());
claimedItems
.
add
(
item
.
build
());
G
enshinItem
genshinItem
=
new
GenshinItem
(
Genshin
Data
.
getItemDataMap
().
get
(
mailItem
.
itemId
));
G
ameItem
gameItem
=
new
GameItem
(
Game
Data
.
getItemDataMap
().
get
(
mailItem
.
itemId
));
g
enshin
Item
.
setCount
(
mailItem
.
itemCount
);
g
ame
Item
.
setCount
(
mailItem
.
itemCount
);
g
enshin
Item
.
setLevel
(
mailItem
.
itemLevel
);
g
ame
Item
.
setLevel
(
mailItem
.
itemLevel
);
g
enshin
Item
.
setPromoteLevel
(
promoteLevel
);
g
ame
Item
.
setPromoteLevel
(
promoteLevel
);
player
.
getInventory
().
addItem
(
g
enshin
Item
,
ActionReason
.
MailAttachment
);
player
.
getInventory
().
addItem
(
g
ame
Item
,
ActionReason
.
MailAttachment
);
}
}
message
.
isAttachmentGot
=
true
;
message
.
isAttachmentGot
=
true
;
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.friends.Friendship
;
import
emu.grasscutter.game.friends.Friendship
;
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.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp
;
import
emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp
;
public
class
PacketGetPlayerAskFriendListRsp
extends
Genshin
Packet
{
public
class
PacketGetPlayerAskFriendListRsp
extends
Base
Packet
{
public
PacketGetPlayerAskFriendListRsp
(
Genshin
Player
player
)
{
public
PacketGetPlayerAskFriendListRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
GetPlayerAskFriendListRsp
);
super
(
PacketOpcodes
.
GetPlayerAskFriendListRsp
);
GetPlayerAskFriendListRsp
.
Builder
proto
=
GetPlayerAskFriendListRsp
.
newBuilder
();
GetPlayerAskFriendListRsp
.
Builder
proto
=
GetPlayerAskFriendListRsp
.
newBuilder
();
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java
View file @
1c36f078
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.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.friends.Friendship
;
import
emu.grasscutter.game.friends.Friendship
;
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.FriendBriefOuterClass.FriendBrief
;
import
emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief
;
import
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState
;
import
emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState
;
...
@@ -11,16 +11,16 @@ import emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFrien
...
@@ -11,16 +11,16 @@ import emu.grasscutter.net.proto.GetPlayerFriendListRspOuterClass.GetPlayerFrien
import
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage
;
import
emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage
;
import
emu.grasscutter.net.proto.PlatformTypeOuterClass
;
import
emu.grasscutter.net.proto.PlatformTypeOuterClass
;
public
class
PacketGetPlayerFriendListRsp
extends
Genshin
Packet
{
public
class
PacketGetPlayerFriendListRsp
extends
Base
Packet
{
public
PacketGetPlayerFriendListRsp
(
Genshin
Player
player
)
{
public
PacketGetPlayerFriendListRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
GetPlayerFriendListRsp
);
super
(
PacketOpcodes
.
GetPlayerFriendListRsp
);
FriendBrief
serverFriend
=
FriendBrief
.
newBuilder
()
FriendBrief
serverFriend
=
FriendBrief
.
newBuilder
()
.
setUid
(
G
enshin
Constants
.
SERVER_CONSOLE_UID
)
.
setUid
(
G
ame
Constants
.
SERVER_CONSOLE_UID
)
.
setNickname
(
"Server"
)
.
setNickname
(
"Server"
)
.
setLevel
(
1
)
.
setLevel
(
1
)
.
setAvatarId
(
HeadImage
.
newBuilder
().
setAvatarId
(
G
enshin
Constants
.
MAIN_CHARACTER_FEMALE
).
getAvatarId
())
.
setAvatarId
(
HeadImage
.
newBuilder
().
setAvatarId
(
G
ame
Constants
.
MAIN_CHARACTER_FEMALE
).
getAvatarId
())
.
setWorldLevel
(
0
)
.
setWorldLevel
(
0
)
.
setSignature
(
""
)
.
setSignature
(
""
)
.
setLastActiveTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
f
))
.
setLastActiveTime
((
int
)
(
System
.
currentTimeMillis
()
/
1000
f
))
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java
View file @
1c36f078
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.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp
;
import
emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail
;
import
emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail
;
public
class
PacketGetPlayerSocialDetailRsp
extends
Genshin
Packet
{
public
class
PacketGetPlayerSocialDetailRsp
extends
Base
Packet
{
public
PacketGetPlayerSocialDetailRsp
(
SocialDetail
.
Builder
detail
)
{
public
PacketGetPlayerSocialDetailRsp
(
SocialDetail
.
Builder
detail
)
{
super
(
PacketOpcodes
.
GetPlayerSocialDetailRsp
);
super
(
PacketOpcodes
.
GetPlayerSocialDetailRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java
View file @
1c36f078
...
@@ -2,13 +2,13 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,13 +2,13 @@ package emu.grasscutter.server.packet.send;
import
com.google.protobuf.ByteString
;
import
com.google.protobuf.ByteString
;
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.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp
;
import
emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp
;
import
emu.grasscutter.server.game.GameSession
;
import
emu.grasscutter.server.game.GameSession
;
import
emu.grasscutter.utils.Crypto
;
import
emu.grasscutter.utils.Crypto
;
public
class
PacketGetPlayerTokenRsp
extends
Genshin
Packet
{
public
class
PacketGetPlayerTokenRsp
extends
Base
Packet
{
public
PacketGetPlayerTokenRsp
(
GameSession
session
,
boolean
doesPlayerExist
)
{
public
PacketGetPlayerTokenRsp
(
GameSession
session
,
boolean
doesPlayerExist
)
{
super
(
PacketOpcodes
.
GetPlayerTokenRsp
,
true
);
super
(
PacketOpcodes
.
GetPlayerTokenRsp
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java
View file @
1c36f078
...
@@ -3,12 +3,12 @@ package emu.grasscutter.server.packet.send;
...
@@ -3,12 +3,12 @@ package emu.grasscutter.server.packet.send;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
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.CityInfoOuterClass.CityInfo
;
import
emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo
;
import
emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp
;
import
emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp
;
public
class
PacketGetSceneAreaRsp
extends
Genshin
Packet
{
public
class
PacketGetSceneAreaRsp
extends
Base
Packet
{
public
PacketGetSceneAreaRsp
(
int
sceneId
)
{
public
PacketGetSceneAreaRsp
(
int
sceneId
)
{
super
(
PacketOpcodes
.
GetSceneAreaRsp
);
super
(
PacketOpcodes
.
GetSceneAreaRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java
View file @
1c36f078
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.GetScenePointRspOuterClass.GetScenePointRsp
;
import
emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp
;
public
class
PacketGetScenePointRsp
extends
Genshin
Packet
{
public
class
PacketGetScenePointRsp
extends
Base
Packet
{
public
PacketGetScenePointRsp
(
int
sceneId
)
{
public
PacketGetScenePointRsp
(
int
sceneId
)
{
super
(
PacketOpcodes
.
GetScenePointRsp
);
super
(
PacketOpcodes
.
GetScenePointRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java
View file @
1c36f078
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.GetShopRspOuterClass.GetShopRsp
;
import
emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp
;
import
emu.grasscutter.net.proto.ShopOuterClass.Shop
;
import
emu.grasscutter.net.proto.ShopOuterClass.Shop
;
public
class
PacketGetShopRsp
extends
Genshin
Packet
{
public
class
PacketGetShopRsp
extends
Base
Packet
{
public
PacketGetShopRsp
(
int
shopType
)
{
public
PacketGetShopRsp
(
int
shopType
)
{
super
(
PacketOpcodes
.
GetShopRsp
);
super
(
PacketOpcodes
.
GetShopRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java
View file @
1c36f078
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.GetShopmallDataRspOuterClass.GetShopmallDataRsp
;
import
emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp
;
public
class
PacketGetShopmallDataRsp
extends
Genshin
Packet
{
public
class
PacketGetShopmallDataRsp
extends
Base
Packet
{
public
PacketGetShopmallDataRsp
()
{
public
PacketGetShopmallDataRsp
()
{
super
(
PacketOpcodes
.
GetShopmallDataRsp
);
super
(
PacketOpcodes
.
GetShopmallDataRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.World
;
import
emu.grasscutter.game.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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp
;
import
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp
;
public
class
PacketGetWorldMpInfoRsp
extends
Genshin
Packet
{
public
class
PacketGetWorldMpInfoRsp
extends
Base
Packet
{
public
PacketGetWorldMpInfoRsp
(
World
world
)
{
public
PacketGetWorldMpInfoRsp
(
World
world
)
{
super
(
PacketOpcodes
.
GetWorldMpInfoRsp
);
super
(
PacketOpcodes
.
GetWorldMpInfoRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java
View file @
1c36f078
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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify
;
import
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify
;
public
class
PacketH5ActivityIdsNotify
extends
Genshin
Packet
{
public
class
PacketH5ActivityIdsNotify
extends
Base
Packet
{
public
PacketH5ActivityIdsNotify
()
{
public
PacketH5ActivityIdsNotify
()
{
super
(
PacketOpcodes
.
H5ActivityIdsNotify
);
super
(
PacketOpcodes
.
H5ActivityIdsNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.World
;
import
emu.grasscutter.game.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.HostPlayerNotifyOuterClass.HostPlayerNotify
;
import
emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify
;
public
class
PacketHostPlayerNotify
extends
Genshin
Packet
{
public
class
PacketHostPlayerNotify
extends
Base
Packet
{
public
PacketHostPlayerNotify
(
World
world
)
{
public
PacketHostPlayerNotify
(
World
world
)
{
super
(
PacketOpcodes
.
HostPlayerNotify
);
super
(
PacketOpcodes
.
HostPlayerNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java
View file @
1c36f078
...
@@ -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.inventory.G
enshin
Item
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.game.props.ActionReason
;
import
emu.grasscutter.game.props.ActionReason
;
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.ItemAddHintNotifyOuterClass.ItemAddHintNotify
;
import
emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify
;
public
class
PacketItemAddHintNotify
extends
Genshin
Packet
{
public
class
PacketItemAddHintNotify
extends
Base
Packet
{
public
PacketItemAddHintNotify
(
G
enshin
Item
item
,
ActionReason
reason
)
{
public
PacketItemAddHintNotify
(
G
ame
Item
item
,
ActionReason
reason
)
{
super
(
PacketOpcodes
.
ItemAddHintNotify
);
super
(
PacketOpcodes
.
ItemAddHintNotify
);
ItemAddHintNotify
proto
=
ItemAddHintNotify
.
newBuilder
()
ItemAddHintNotify
proto
=
ItemAddHintNotify
.
newBuilder
()
...
@@ -22,13 +22,13 @@ public class PacketItemAddHintNotify extends GenshinPacket {
...
@@ -22,13 +22,13 @@ public class PacketItemAddHintNotify extends GenshinPacket {
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
public
PacketItemAddHintNotify
(
Collection
<
G
enshin
Item
>
items
,
ActionReason
reason
)
{
public
PacketItemAddHintNotify
(
Collection
<
G
ame
Item
>
items
,
ActionReason
reason
)
{
super
(
PacketOpcodes
.
ItemAddHintNotify
);
super
(
PacketOpcodes
.
ItemAddHintNotify
);
ItemAddHintNotify
.
Builder
proto
=
ItemAddHintNotify
.
newBuilder
()
ItemAddHintNotify
.
Builder
proto
=
ItemAddHintNotify
.
newBuilder
()
.
setReason
(
reason
.
getValue
());
.
setReason
(
reason
.
getValue
());
for
(
G
enshin
Item
item
:
items
)
{
for
(
G
ame
Item
item
:
items
)
{
proto
.
addItemList
(
item
.
toItemHintProto
());
proto
.
addItemList
(
item
.
toItemHintProto
());
}
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.entity.G
enshin
Entity
;
import
emu.grasscutter.game.entity.G
ame
Entity
;
import
emu.grasscutter.game.props.LifeState
;
import
emu.grasscutter.game.props.LifeState
;
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.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify
;
import
emu.grasscutter.net.proto.LifeStateChangeNotifyOuterClass.LifeStateChangeNotify
;
public
class
PacketLifeStateChangeNotify
extends
Genshin
Packet
{
public
class
PacketLifeStateChangeNotify
extends
Base
Packet
{
public
PacketLifeStateChangeNotify
(
G
enshin
Entity
attacker
,
G
enshin
Entity
target
,
LifeState
lifeState
)
{
public
PacketLifeStateChangeNotify
(
G
ame
Entity
attacker
,
G
ame
Entity
target
,
LifeState
lifeState
)
{
super
(
PacketOpcodes
.
LifeStateChangeNotify
);
super
(
PacketOpcodes
.
LifeStateChangeNotify
);
LifeStateChangeNotify
proto
=
LifeStateChangeNotify
.
newBuilder
()
LifeStateChangeNotify
proto
=
LifeStateChangeNotify
.
newBuilder
()
...
@@ -18,7 +18,7 @@ public class PacketLifeStateChangeNotify extends GenshinPacket {
...
@@ -18,7 +18,7 @@ public class PacketLifeStateChangeNotify extends GenshinPacket {
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
public
PacketLifeStateChangeNotify
(
int
attackerId
,
G
enshin
Entity
target
,
LifeState
lifeState
)
{
public
PacketLifeStateChangeNotify
(
int
attackerId
,
G
ame
Entity
target
,
LifeState
lifeState
)
{
super
(
PacketOpcodes
.
LifeStateChangeNotify
);
super
(
PacketOpcodes
.
LifeStateChangeNotify
);
LifeStateChangeNotify
proto
=
LifeStateChangeNotify
.
newBuilder
()
LifeStateChangeNotify
proto
=
LifeStateChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketMailChangeNotify.java
View file @
1c36f078
...
@@ -2,26 +2,26 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,26 +2,26 @@ package emu.grasscutter.server.packet.send;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.Mail
;
import
emu.grasscutter.game.Mail
;
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.*
;
import
emu.grasscutter.net.proto.*
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
public
class
PacketMailChangeNotify
extends
Genshin
Packet
{
public
class
PacketMailChangeNotify
extends
Base
Packet
{
public
PacketMailChangeNotify
(
Genshin
Player
player
,
Mail
message
)
{
public
PacketMailChangeNotify
(
Player
player
,
Mail
message
)
{
this
(
player
,
new
ArrayList
<
Mail
>(){{
add
(
message
);}});
this
(
player
,
new
ArrayList
<
Mail
>(){{
add
(
message
);}});
}
}
public
PacketMailChangeNotify
(
Genshin
Player
player
,
List
<
Mail
>
mailList
)
{
public
PacketMailChangeNotify
(
Player
player
,
List
<
Mail
>
mailList
)
{
this
(
player
,
mailList
,
null
);
this
(
player
,
mailList
,
null
);
}
}
public
PacketMailChangeNotify
(
Genshin
Player
player
,
List
<
Mail
>
mailList
,
List
<
Integer
>
delMailIdList
)
{
public
PacketMailChangeNotify
(
Player
player
,
List
<
Mail
>
mailList
,
List
<
Integer
>
delMailIdList
)
{
super
(
PacketOpcodes
.
MailChangeNotify
);
super
(
PacketOpcodes
.
MailChangeNotify
);
MailChangeNotifyOuterClass
.
MailChangeNotify
.
Builder
proto
=
MailChangeNotifyOuterClass
.
MailChangeNotify
.
newBuilder
();
MailChangeNotifyOuterClass
.
MailChangeNotify
.
Builder
proto
=
MailChangeNotifyOuterClass
.
MailChangeNotify
.
newBuilder
();
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java
View file @
1c36f078
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.NpcTalkRspOuterClass.NpcTalkRsp
;
import
emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp
;
public
class
PacketNpcTalkRsp
extends
Genshin
Packet
{
public
class
PacketNpcTalkRsp
extends
Base
Packet
{
public
PacketNpcTalkRsp
(
int
npcEntityId
,
int
curTalkId
,
int
entityId
)
{
public
PacketNpcTalkRsp
(
int
npcEntityId
,
int
curTalkId
,
int
entityId
)
{
super
(
PacketOpcodes
.
NpcTalkRsp
);
super
(
PacketOpcodes
.
NpcTalkRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.props.OpenState
;
import
emu.grasscutter.game.props.OpenState
;
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.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify
;
import
emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify
;
public
class
PacketOpenStateUpdateNotify
extends
Genshin
Packet
{
public
class
PacketOpenStateUpdateNotify
extends
Base
Packet
{
public
PacketOpenStateUpdateNotify
()
{
public
PacketOpenStateUpdateNotify
()
{
super
(
PacketOpcodes
.
OpenStateUpdateNotify
);
super
(
PacketOpcodes
.
OpenStateUpdateNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java
View file @
1c36f078
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
PacketPathfindingEnterSceneRsp
extends
Genshin
Packet
{
public
class
PacketPathfindingEnterSceneRsp
extends
Base
Packet
{
public
PacketPathfindingEnterSceneRsp
(
int
clientSequence
)
{
public
PacketPathfindingEnterSceneRsp
(
int
clientSequence
)
{
super
(
PacketOpcodes
.
PathfindingEnterSceneRsp
);
super
(
PacketOpcodes
.
PathfindingEnterSceneRsp
);
...
...
Prev
1
…
6
7
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