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
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
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
);
AvatarFlycloakChangeNotify
proto
=
AvatarFlycloakChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java
View file @
1c36f078
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.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify
;
public
class
PacketAvatarGainCostumeNotify
extends
Genshin
Packet
{
public
class
PacketAvatarGainCostumeNotify
extends
Base
Packet
{
public
PacketAvatarGainCostumeNotify
(
int
costumeId
)
{
super
(
PacketOpcodes
.
AvatarGainCostumeNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java
View file @
1c36f078
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.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify
;
public
class
PacketAvatarGainFlycloakNotify
extends
Genshin
Packet
{
public
class
PacketAvatarGainFlycloakNotify
extends
Base
Packet
{
public
PacketAvatarGainFlycloakNotify
(
int
flycloak
)
{
super
(
PacketOpcodes
.
AvatarGainFlycloakNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java
View file @
1c36f078
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.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.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
);
AvatarLifeStateChangeNotify
proto
=
AvatarLifeStateChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
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
);
AvatarPromoteRsp
proto
=
AvatarPromoteRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java
View file @
1c36f078
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.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify
;
public
class
PacketAvatarPropNotify
extends
Genshin
Packet
{
public
PacketAvatarPropNotify
(
Genshin
Avatar
avatar
)
{
public
class
PacketAvatarPropNotify
extends
Base
Packet
{
public
PacketAvatarPropNotify
(
Avatar
avatar
)
{
super
(
PacketOpcodes
.
AvatarPropNotify
);
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
...
...
@@ -22,7 +22,7 @@ public class PacketAvatarPropNotify extends GenshinPacket {
this
.
setData
(
proto
);
}
public
PacketAvatarPropNotify
(
Genshin
Avatar
avatar
,
PlayerProperty
prop
,
int
value
)
{
public
PacketAvatarPropNotify
(
Avatar
avatar
,
PlayerProperty
prop
,
int
value
)
{
super
(
PacketOpcodes
.
AvatarPropNotify
);
AvatarPropNotify
proto
=
AvatarPropNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
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
);
AvatarSkillChangeNotify
proto
=
AvatarSkillChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
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
);
AvatarSkillUpgradeRsp
proto
=
AvatarSkillUpgradeRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java
View file @
1c36f078
...
...
@@ -2,17 +2,17 @@ package emu.grasscutter.server.packet.send;
import
java.util.Map.Entry
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.TeamInfo
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam
;
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
);
AvatarTeamUpdateNotify
.
Builder
proto
=
AvatarTeamUpdateNotify
.
newBuilder
();
...
...
@@ -23,7 +23,7 @@ public class PacketAvatarTeamUpdateNotify extends GenshinPacket {
.
setTeamName
(
teamInfo
.
getName
());
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
());
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify
;
public
class
PacketAvatarUnlockTalentNotify
extends
Genshin
Packet
{
public
class
PacketAvatarUnlockTalentNotify
extends
Base
Packet
{
public
PacketAvatarUnlockTalentNotify
(
Genshin
Avatar
avatar
,
int
talentId
)
{
public
PacketAvatarUnlockTalentNotify
(
Avatar
avatar
,
int
talentId
)
{
super
(
PacketOpcodes
.
AvatarUnlockTalentNotify
);
AvatarUnlockTalentNotify
proto
=
AvatarUnlockTalentNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java
View file @
1c36f078
...
...
@@ -2,14 +2,14 @@ package emu.grasscutter.server.packet.send;
import
java.util.Map
;
import
emu.grasscutter.game.avatar.
Genshin
Avatar
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.avatar.Avatar
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp
;
public
class
PacketAvatarUpgradeRsp
extends
Genshin
Packet
{
public
class
PacketAvatarUpgradeRsp
extends
Base
Packet
{
public
PacketAvatarUpgradeRsp
(
Genshin
Avatar
avatar
,
int
oldLevel
,
Map
<
Integer
,
Float
>
oldFightPropMap
)
{
public
PacketAvatarUpgradeRsp
(
Avatar
avatar
,
int
oldLevel
,
Map
<
Integer
,
Float
>
oldFightPropMap
)
{
super
(
PacketOpcodes
.
AvatarUpgradeRsp
);
this
.
buildHeader
(
0
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java
View file @
1c36f078
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.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketAvatarWearFlycloakRsp
extends
Genshin
Packet
{
public
class
PacketAvatarWearFlycloakRsp
extends
Base
Packet
{
public
PacketAvatarWearFlycloakRsp
(
long
avatarGuid
,
int
costumeId
)
{
super
(
PacketOpcodes
.
AvatarWearFlycloakRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java
View file @
1c36f078
...
...
@@ -2,13 +2,13 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsRspOuterClass.CalcWeaponUpgradeReturnItemsRsp
;
import
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketCalcWeaponUpgradeReturnItemsRsp
extends
Genshin
Packet
{
public
class
PacketCalcWeaponUpgradeReturnItemsRsp
extends
Base
Packet
{
public
PacketCalcWeaponUpgradeReturnItemsRsp
(
long
itemGuid
,
List
<
ItemParam
>
returnItems
)
{
super
(
PacketOpcodes
.
CalcWeaponUpgradeReturnItemsRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCardProductRewardNotify.java
View file @
1c36f078
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.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify
;
public
class
PacketCardProductRewardNotify
extends
Genshin
Packet
{
public
class
PacketCardProductRewardNotify
extends
Base
Packet
{
public
PacketCardProductRewardNotify
(
int
remainsDay
)
{
super
(
PacketOpcodes
.
CardProductRewardNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java
View file @
1c36f078
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.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketChangeAvatarRsp
extends
Genshin
Packet
{
public
class
PacketChangeAvatarRsp
extends
Base
Packet
{
public
PacketChangeAvatarRsp
(
long
guid
)
{
super
(
PacketOpcodes
.
ChangeAvatarRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
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.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp
;
public
class
PacketChangeGameTimeRsp
extends
Genshin
Packet
{
public
class
PacketChangeGameTimeRsp
extends
Base
Packet
{
public
PacketChangeGameTimeRsp
(
Genshin
Player
player
)
{
public
PacketChangeGameTimeRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
ChangeGameTimeRsp
);
ChangeGameTimeRsp
proto
=
ChangeGameTimeRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java
View file @
1c36f078
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.Player
;
import
emu.grasscutter.game.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.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp
;
public
class
PacketChangeMpTeamAvatarRsp
extends
Genshin
Packet
{
public
class
PacketChangeMpTeamAvatarRsp
extends
Base
Packet
{
public
PacketChangeMpTeamAvatarRsp
(
Genshin
Player
player
,
TeamInfo
teamInfo
)
{
public
PacketChangeMpTeamAvatarRsp
(
Player
player
,
TeamInfo
teamInfo
)
{
super
(
PacketOpcodes
.
ChangeMpTeamAvatarRsp
);
ChangeMpTeamAvatarRsp
.
Builder
proto
=
ChangeMpTeamAvatarRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java
View file @
1c36f078
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.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp
;
public
class
PacketChangeTeamNameRsp
extends
Genshin
Packet
{
public
class
PacketChangeTeamNameRsp
extends
Base
Packet
{
public
PacketChangeTeamNameRsp
(
int
teamId
,
String
teamName
)
{
super
(
PacketOpcodes
.
ChangeTeamNameRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java
View file @
1c36f078
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.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp
;
public
class
PacketChooseCurAvatarTeamRsp
extends
Genshin
Packet
{
public
class
PacketChooseCurAvatarTeamRsp
extends
Base
Packet
{
public
PacketChooseCurAvatarTeamRsp
(
int
teamId
)
{
super
(
PacketOpcodes
.
ChooseCurAvatarTeamRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java
View file @
1c36f078
...
...
@@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry
;
import
emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify
;
public
class
PacketClientAbilityInitFinishNotify
extends
Genshin
Packet
{
public
class
PacketClientAbilityInitFinishNotify
extends
Base
Packet
{
public
PacketClientAbilityInitFinishNotify
(
List
<
AbilityInvokeEntry
>
entries
)
{
super
(
PacketOpcodes
.
ClientAbilityInitFinishNotify
,
true
);
...
...
Prev
1
…
4
5
6
7
8
9
10
11
12
…
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