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
d32f706c
Commit
d32f706c
authored
Apr 27, 2022
by
KingRainbow44
Browse files
Merge branch 'development' into api
# Conflicts: # src/main/java/emu/grasscutter/plugin/api/ServerHook.java
parents
47d8fd3c
f0d728b4
Changes
308
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java
View file @
d32f706c
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.AskAddFriendRspOuterClass.AskAddFriendRsp
;
import
emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp
;
public
class
PacketAskAddFriendRsp
extends
Genshin
Packet
{
public
class
PacketAskAddFriendRsp
extends
Base
Packet
{
public
PacketAskAddFriendRsp
(
int
targetUid
)
{
public
PacketAskAddFriendRsp
(
int
targetUid
)
{
super
(
PacketOpcodes
.
AskAddFriendRsp
);
super
(
PacketOpcodes
.
AskAddFriendRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java
View file @
d32f706c
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.AvatarAddNotifyOuterClass.AvatarAddNotify
;
import
emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify
;
public
class
PacketAvatarAddNotify
extends
Genshin
Packet
{
public
class
PacketAvatarAddNotify
extends
Base
Packet
{
public
PacketAvatarAddNotify
(
Genshin
Avatar
avatar
,
boolean
addedToTeam
)
{
public
PacketAvatarAddNotify
(
Avatar
avatar
,
boolean
addedToTeam
)
{
super
(
PacketOpcodes
.
AvatarAddNotify
);
super
(
PacketOpcodes
.
AvatarAddNotify
);
AvatarAddNotify
proto
=
AvatarAddNotify
.
newBuilder
()
AvatarAddNotify
proto
=
AvatarAddNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java
View file @
d32f706c
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.game.entity.EntityAvatar
;
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.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify
;
import
emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify
;
public
class
PacketAvatarChangeCostumeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarChangeCostumeNotify
extends
Base
Packet
{
public
PacketAvatarChangeCostumeNotify
(
EntityAvatar
entity
)
{
public
PacketAvatarChangeCostumeNotify
(
EntityAvatar
entity
)
{
super
(
PacketOpcodes
.
AvatarChangeCostumeNotify
);
super
(
PacketOpcodes
.
AvatarChangeCostumeNotify
);
AvatarChangeCostumeNotify
proto
=
AvatarChangeCostumeNotify
.
newBuilder
()
AvatarChangeCostumeNotify
proto
=
AvatarChangeCostumeNotify
.
newBuilder
()
.
setEntity
(
entity
.
toProto
())
.
setEntity
Info
(
entity
.
toProto
())
.
build
();
.
build
();
this
.
setData
(
proto
);
this
.
setData
(
proto
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java
View file @
d32f706c
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.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp
;
import
emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketAvatarChangeCostumeRsp
extends
Genshin
Packet
{
public
class
PacketAvatarChangeCostumeRsp
extends
Base
Packet
{
public
PacketAvatarChangeCostumeRsp
(
long
avatarGuid
,
int
costumeId
)
{
public
PacketAvatarChangeCostumeRsp
(
long
avatarGuid
,
int
costumeId
)
{
super
(
PacketOpcodes
.
AvatarChangeCostumeRsp
);
super
(
PacketOpcodes
.
AvatarChangeCostumeRsp
);
...
@@ -21,7 +22,7 @@ public class PacketAvatarChangeCostumeRsp extends GenshinPacket {
...
@@ -21,7 +22,7 @@ public class PacketAvatarChangeCostumeRsp extends GenshinPacket {
super
(
PacketOpcodes
.
AvatarChangeCostumeRsp
);
super
(
PacketOpcodes
.
AvatarChangeCostumeRsp
);
AvatarChangeCostumeRsp
proto
=
AvatarChangeCostumeRsp
.
newBuilder
()
AvatarChangeCostumeRsp
proto
=
AvatarChangeCostumeRsp
.
newBuilder
()
.
setRetcode
(
1
)
.
setRetcode
(
RetcodeOuterClass
.
Retcode
.
RET_SVR_ERROR_VALUE
)
.
build
();
.
build
();
this
.
setData
(
proto
);
this
.
setData
(
proto
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java
View file @
d32f706c
...
@@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
import
emu.grasscutter.game.
GenshinPlaye
r
;
import
emu.grasscutter.game.
avatar.Avata
r
;
import
emu.grasscutter.game.
TeamInfo
;
import
emu.grasscutter.game.
player.Player
;
import
emu.grasscutter.game.
avatar.GenshinAvatar
;
import
emu.grasscutter.game.
player.TeamInfo
;
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.AvatarDataNotifyOuterClass.AvatarDataNotify
;
import
emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify
;
import
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam
;
import
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam
;
public
class
PacketAvatarDataNotify
extends
Genshin
Packet
{
public
class
PacketAvatarDataNotify
extends
Base
Packet
{
public
PacketAvatarDataNotify
(
Genshin
Player
player
)
{
public
PacketAvatarDataNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
AvatarDataNotify
,
2
);
super
(
PacketOpcodes
.
AvatarDataNotify
,
2
);
AvatarDataNotify
.
Builder
proto
=
AvatarDataNotify
.
newBuilder
()
AvatarDataNotify
.
Builder
proto
=
AvatarDataNotify
.
newBuilder
()
...
@@ -21,7 +21,7 @@ public class PacketAvatarDataNotify extends GenshinPacket {
...
@@ -21,7 +21,7 @@ public class PacketAvatarDataNotify extends GenshinPacket {
.
addAllOwnedFlycloakList
(
player
.
getFlyCloakList
())
.
addAllOwnedFlycloakList
(
player
.
getFlyCloakList
())
.
addAllOwnedCostumeList
(
player
.
getCostumeList
());
.
addAllOwnedCostumeList
(
player
.
getCostumeList
());
for
(
Genshin
Avatar
avatar
:
player
.
getAvatars
())
{
for
(
Avatar
avatar
:
player
.
getAvatars
())
{
proto
.
addAvatarList
(
avatar
.
toProto
());
proto
.
addAvatarList
(
avatar
.
toProto
());
}
}
...
@@ -31,7 +31,7 @@ public class PacketAvatarDataNotify extends GenshinPacket {
...
@@ -31,7 +31,7 @@ public class PacketAvatarDataNotify extends GenshinPacket {
.
setTeamName
(
teamInfo
.
getName
());
.
setTeamName
(
teamInfo
.
getName
());
for
(
int
i
=
0
;
i
<
teamInfo
.
getAvatars
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
teamInfo
.
getAvatars
().
size
();
i
++)
{
Genshin
Avatar
avatar
=
player
.
getAvatars
().
getAvatarById
(
teamInfo
.
getAvatars
().
get
(
i
));
Avatar
avatar
=
player
.
getAvatars
().
getAvatarById
(
teamInfo
.
getAvatars
().
get
(
i
));
avatarTeam
.
addAvatarGuidList
(
avatar
.
getGuid
());
avatarTeam
.
addAvatarGuidList
(
avatar
.
getGuid
());
}
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java
View file @
d32f706c
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.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp
;
import
emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp
;
public
class
PacketAvatarDieAnimationEndRsp
extends
Genshin
Packet
{
public
class
PacketAvatarDieAnimationEndRsp
extends
Base
Packet
{
public
PacketAvatarDieAnimationEndRsp
(
long
dieGuid
,
int
skillId
)
{
public
PacketAvatarDieAnimationEndRsp
(
long
dieGuid
,
int
skillId
)
{
super
(
PacketOpcodes
.
AvatarDieAnimationEndRsp
);
super
(
PacketOpcodes
.
AvatarDieAnimationEndRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java
View file @
d32f706c
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.game.inventory.EquipType
;
import
emu.grasscutter.game.inventory.EquipType
;
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.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify
;
import
emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify
;
public
class
PacketAvatarEquipChangeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarEquipChangeNotify
extends
Base
Packet
{
public
PacketAvatarEquipChangeNotify
(
Genshin
Avatar
avatar
,
G
enshin
Item
item
)
{
public
PacketAvatarEquipChangeNotify
(
Avatar
avatar
,
G
ame
Item
item
)
{
super
(
PacketOpcodes
.
AvatarEquipChangeNotify
);
super
(
PacketOpcodes
.
AvatarEquipChangeNotify
);
AvatarEquipChangeNotify
.
Builder
proto
=
AvatarEquipChangeNotify
.
newBuilder
()
AvatarEquipChangeNotify
.
Builder
proto
=
AvatarEquipChangeNotify
.
newBuilder
()
...
@@ -27,7 +27,7 @@ public class PacketAvatarEquipChangeNotify extends GenshinPacket {
...
@@ -27,7 +27,7 @@ public class PacketAvatarEquipChangeNotify extends GenshinPacket {
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
public
PacketAvatarEquipChangeNotify
(
Genshin
Avatar
avatar
,
EquipType
slot
)
{
public
PacketAvatarEquipChangeNotify
(
Avatar
avatar
,
EquipType
slot
)
{
super
(
PacketOpcodes
.
AvatarEquipChangeNotify
);
super
(
PacketOpcodes
.
AvatarEquipChangeNotify
);
AvatarEquipChangeNotify
.
Builder
proto
=
AvatarEquipChangeNotify
.
newBuilder
()
AvatarEquipChangeNotify
.
Builder
proto
=
AvatarEquipChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterDataNotify.java
View file @
d32f706c
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.game.props.FetterState
;
import
emu.grasscutter.game.props.FetterState
;
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.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify
;
import
emu.grasscutter.net.proto.AvatarFetterDataNotifyOuterClass.AvatarFetterDataNotify
;
import
emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo
;
import
emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo
;
import
emu.grasscutter.net.proto.FetterDataOuterClass.FetterData
;
import
emu.grasscutter.net.proto.FetterDataOuterClass.FetterData
;
public
class
PacketAvatarFetterDataNotify
extends
Genshin
Packet
{
public
class
PacketAvatarFetterDataNotify
extends
Base
Packet
{
public
PacketAvatarFetterDataNotify
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarFetterDataNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarFetterDataNotify
);
super
(
PacketOpcodes
.
AvatarFetterDataNotify
);
int
fetterLevel
=
avatar
.
getFetterLevel
();
int
fetterLevel
=
avatar
.
getFetterLevel
();
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFetterLevelRewardRsp.java
View file @
d32f706c
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.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp
;
import
emu.grasscutter.net.proto.AvatarFetterLevelRewardRspOuterClass.AvatarFetterLevelRewardRsp
;
public
class
PacketAvatarFetterLevelRewardRsp
extends
Genshin
Packet
{
public
class
PacketAvatarFetterLevelRewardRsp
extends
Base
Packet
{
public
PacketAvatarFetterLevelRewardRsp
(
long
guid
,
int
fetterLevel
,
int
rewardId
)
{
public
PacketAvatarFetterLevelRewardRsp
(
long
guid
,
int
fetterLevel
,
int
rewardId
)
{
super
(
PacketOpcodes
.
AvatarFetterLevelRewardRsp
);
super
(
PacketOpcodes
.
AvatarFetterLevelRewardRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java
View file @
d32f706c
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.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify
;
import
emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify
;
public
class
PacketAvatarFightPropNotify
extends
Genshin
Packet
{
public
class
PacketAvatarFightPropNotify
extends
Base
Packet
{
public
PacketAvatarFightPropNotify
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarFightPropNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarFightPropNotify
);
super
(
PacketOpcodes
.
AvatarFightPropNotify
);
AvatarFightPropNotify
proto
=
AvatarFightPropNotify
.
newBuilder
()
AvatarFightPropNotify
proto
=
AvatarFightPropNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java
View file @
d32f706c
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.game.props.FightProperty
;
import
emu.grasscutter.game.props.FightProperty
;
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.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify
;
import
emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify
;
public
class
PacketAvatarFightPropUpdateNotify
extends
Genshin
Packet
{
public
class
PacketAvatarFightPropUpdateNotify
extends
Base
Packet
{
public
PacketAvatarFightPropUpdateNotify
(
Genshin
Avatar
avatar
,
FightProperty
prop
)
{
public
PacketAvatarFightPropUpdateNotify
(
Avatar
avatar
,
FightProperty
prop
)
{
super
(
PacketOpcodes
.
AvatarFightPropUpdateNotify
);
super
(
PacketOpcodes
.
AvatarFightPropUpdateNotify
);
AvatarFightPropUpdateNotify
proto
=
AvatarFightPropUpdateNotify
.
newBuilder
()
AvatarFightPropUpdateNotify
proto
=
AvatarFightPropUpdateNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java
View file @
d32f706c
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.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify
;
import
emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify
;
public
class
PacketAvatarFlycloakChangeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarFlycloakChangeNotify
extends
Base
Packet
{
public
PacketAvatarFlycloakChangeNotify
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarFlycloakChangeNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarFlycloakChangeNotify
);
super
(
PacketOpcodes
.
AvatarFlycloakChangeNotify
);
AvatarFlycloakChangeNotify
proto
=
AvatarFlycloakChangeNotify
.
newBuilder
()
AvatarFlycloakChangeNotify
proto
=
AvatarFlycloakChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java
View file @
d32f706c
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.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify
;
import
emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify
;
public
class
PacketAvatarGainCostumeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarGainCostumeNotify
extends
Base
Packet
{
public
PacketAvatarGainCostumeNotify
(
int
costumeId
)
{
public
PacketAvatarGainCostumeNotify
(
int
costumeId
)
{
super
(
PacketOpcodes
.
AvatarGainCostumeNotify
);
super
(
PacketOpcodes
.
AvatarGainCostumeNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java
View file @
d32f706c
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.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify
;
import
emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify
;
public
class
PacketAvatarGainFlycloakNotify
extends
Genshin
Packet
{
public
class
PacketAvatarGainFlycloakNotify
extends
Base
Packet
{
public
PacketAvatarGainFlycloakNotify
(
int
flycloak
)
{
public
PacketAvatarGainFlycloakNotify
(
int
flycloak
)
{
super
(
PacketOpcodes
.
AvatarGainFlycloakNotify
);
super
(
PacketOpcodes
.
AvatarGainFlycloakNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java
View file @
d32f706c
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.game.props.FightProperty
;
import
emu.grasscutter.game.props.FightProperty
;
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.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify
;
import
emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify
;
public
class
PacketAvatarLifeStateChangeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarLifeStateChangeNotify
extends
Base
Packet
{
public
PacketAvatarLifeStateChangeNotify
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarLifeStateChangeNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarLifeStateChangeNotify
);
super
(
PacketOpcodes
.
AvatarLifeStateChangeNotify
);
AvatarLifeStateChangeNotify
proto
=
AvatarLifeStateChangeNotify
.
newBuilder
()
AvatarLifeStateChangeNotify
proto
=
AvatarLifeStateChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java
View file @
d32f706c
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.AvatarPromoteRspOuterClass.AvatarPromoteRsp
;
import
emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp
;
public
class
PacketAvatarPromoteRsp
extends
Genshin
Packet
{
public
class
PacketAvatarPromoteRsp
extends
Base
Packet
{
public
PacketAvatarPromoteRsp
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarPromoteRsp
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarPromoteRsp
);
super
(
PacketOpcodes
.
AvatarPromoteRsp
);
AvatarPromoteRsp
proto
=
AvatarPromoteRsp
.
newBuilder
()
AvatarPromoteRsp
proto
=
AvatarPromoteRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java
View file @
d32f706c
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.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.AvatarPropNotifyOuterClass.AvatarPropNotify
;
import
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify
;
public
class
PacketAvatarPropNotify
extends
Genshin
Packet
{
public
class
PacketAvatarPropNotify
extends
Base
Packet
{
public
PacketAvatarPropNotify
(
Genshin
Avatar
avatar
)
{
public
PacketAvatarPropNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarPropNotify
);
super
(
PacketOpcodes
.
AvatarPropNotify
);
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
...
@@ -22,7 +22,7 @@ public class PacketAvatarPropNotify extends GenshinPacket {
...
@@ -22,7 +22,7 @@ public class PacketAvatarPropNotify extends GenshinPacket {
this
.
setData
(
proto
);
this
.
setData
(
proto
);
}
}
public
PacketAvatarPropNotify
(
Genshin
Avatar
avatar
,
PlayerProperty
prop
,
int
value
)
{
public
PacketAvatarPropNotify
(
Avatar
avatar
,
PlayerProperty
prop
,
int
value
)
{
super
(
PacketOpcodes
.
AvatarPropNotify
);
super
(
PacketOpcodes
.
AvatarPropNotify
);
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java
View file @
d32f706c
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.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify
;
import
emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify
;
public
class
PacketAvatarSkillChangeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarSkillChangeNotify
extends
Base
Packet
{
public
PacketAvatarSkillChangeNotify
(
Genshin
Avatar
avatar
,
int
skillId
,
int
oldLevel
,
int
curLevel
)
{
public
PacketAvatarSkillChangeNotify
(
Avatar
avatar
,
int
skillId
,
int
oldLevel
,
int
curLevel
)
{
super
(
PacketOpcodes
.
AvatarSkillChangeNotify
);
super
(
PacketOpcodes
.
AvatarSkillChangeNotify
);
AvatarSkillChangeNotify
proto
=
AvatarSkillChangeNotify
.
newBuilder
()
AvatarSkillChangeNotify
proto
=
AvatarSkillChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java
View file @
d32f706c
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.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp
;
import
emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp
;
public
class
PacketAvatarSkillUpgradeRsp
extends
Genshin
Packet
{
public
class
PacketAvatarSkillUpgradeRsp
extends
Base
Packet
{
public
PacketAvatarSkillUpgradeRsp
(
Genshin
Avatar
avatar
,
int
skillId
,
int
oldLevel
,
int
newLevel
)
{
public
PacketAvatarSkillUpgradeRsp
(
Avatar
avatar
,
int
skillId
,
int
oldLevel
,
int
newLevel
)
{
super
(
PacketOpcodes
.
AvatarSkillUpgradeRsp
);
super
(
PacketOpcodes
.
AvatarSkillUpgradeRsp
);
AvatarSkillUpgradeRsp
proto
=
AvatarSkillUpgradeRsp
.
newBuilder
()
AvatarSkillUpgradeRsp
proto
=
AvatarSkillUpgradeRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java
View file @
d32f706c
...
@@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send;
import
java.util.Map.Entry
;
import
java.util.Map.Entry
;
import
emu.grasscutter.game.
GenshinPlaye
r
;
import
emu.grasscutter.game.
avatar.Avata
r
;
import
emu.grasscutter.game.
TeamInfo
;
import
emu.grasscutter.game.
player.Player
;
import
emu.grasscutter.game.
avatar.GenshinAvatar
;
import
emu.grasscutter.game.
player.TeamInfo
;
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.AvatarTeamOuterClass.AvatarTeam
;
import
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam
;
import
emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify
;
import
emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify
;
public
class
PacketAvatarTeamUpdateNotify
extends
Genshin
Packet
{
public
class
PacketAvatarTeamUpdateNotify
extends
Base
Packet
{
public
PacketAvatarTeamUpdateNotify
(
Genshin
Player
player
)
{
public
PacketAvatarTeamUpdateNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
AvatarTeamUpdateNotify
);
super
(
PacketOpcodes
.
AvatarTeamUpdateNotify
);
AvatarTeamUpdateNotify
.
Builder
proto
=
AvatarTeamUpdateNotify
.
newBuilder
();
AvatarTeamUpdateNotify
.
Builder
proto
=
AvatarTeamUpdateNotify
.
newBuilder
();
...
@@ -23,7 +23,7 @@ public class PacketAvatarTeamUpdateNotify extends GenshinPacket {
...
@@ -23,7 +23,7 @@ public class PacketAvatarTeamUpdateNotify extends GenshinPacket {
.
setTeamName
(
teamInfo
.
getName
());
.
setTeamName
(
teamInfo
.
getName
());
for
(
int
i
=
0
;
i
<
teamInfo
.
getAvatars
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
teamInfo
.
getAvatars
().
size
();
i
++)
{
Genshin
Avatar
avatar
=
player
.
getAvatars
().
getAvatarById
(
teamInfo
.
getAvatars
().
get
(
i
));
Avatar
avatar
=
player
.
getAvatars
().
getAvatarById
(
teamInfo
.
getAvatars
().
get
(
i
));
avatarTeam
.
addAvatarGuidList
(
avatar
.
getGuid
());
avatarTeam
.
addAvatarGuidList
(
avatar
.
getGuid
());
}
}
...
...
Prev
1
…
5
6
7
8
9
10
11
12
13
…
16
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