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
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java
View file @
fa9d703d
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 @
fa9d703d
...
...
@@ -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 @
fa9d703d
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 @
fa9d703d
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 @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.World
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.game.
world.
World
;
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 @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.TeamInfo
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.game.
player.
TeamInfo
;
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 @
fa9d703d
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 @
fa9d703d
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 @
fa9d703d
...
...
@@ -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
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java
View file @
fa9d703d
...
...
@@ -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.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify
;
import
emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry
;
public
class
PacketCombatInvocationsNotify
extends
Genshin
Packet
{
public
class
PacketCombatInvocationsNotify
extends
Base
Packet
{
public
PacketCombatInvocationsNotify
(
CombatInvokeEntry
entry
)
{
super
(
PacketOpcodes
.
CombatInvocationsNotify
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCombineRsp.java
View file @
fa9d703d
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.CombineReqOuterClass
;
import
emu.grasscutter.net.proto.CombineRspOuterClass
;
import
emu.grasscutter.net.proto.ItemParamOuterClass
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketCombineRsp
extends
Genshin
Packet
{
public
class
PacketCombineRsp
extends
Base
Packet
{
public
PacketCombineRsp
()
{
super
(
PacketOpcodes
.
CombineRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java
View file @
fa9d703d
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.DealAddFriendResultTypeOuterClass.DealAddFriendResultType
;
import
emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp
;
public
class
PacketDealAddFriendRsp
extends
Genshin
Packet
{
public
class
PacketDealAddFriendRsp
extends
Base
Packet
{
public
PacketDealAddFriendRsp
(
int
targetUid
,
DealAddFriendResultType
result
)
{
super
(
PacketOpcodes
.
DealAddFriendRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDelMailRsp.java
0 → 100644
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.net.packet.BasePacket
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.DelMailRspOuterClass.DelMailRsp
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
PacketDelMailRsp
extends
BasePacket
{
public
PacketDelMailRsp
(
Player
player
,
List
<
Integer
>
toDeleteIds
)
{
super
(
PacketOpcodes
.
DelMailRsp
);
DelMailRsp
.
Builder
proto
=
DelMailRsp
.
newBuilder
();
List
<
Integer
>
deletedIds
=
new
ArrayList
<>();
for
(
int
mailId
:
toDeleteIds
)
{
if
(
player
.
deleteMail
(
mailId
))
{
deletedIds
.
add
(
mailId
);
}
}
this
.
setData
(
proto
.
build
());
player
.
getSession
().
send
(
new
PacketMailChangeNotify
(
player
,
null
,
deletedIds
));
}
}
\ No newline at end of file
src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java
View file @
fa9d703d
...
...
@@ -2,11 +2,11 @@ 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.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify
;
public
class
PacketDelTeamEntityNotify
extends
Genshin
Packet
{
public
class
PacketDelTeamEntityNotify
extends
Base
Packet
{
public
PacketDelTeamEntityNotify
(
int
sceneId
,
int
teamEntityId
)
{
super
(
PacketOpcodes
.
DelTeamEntityNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java
View file @
fa9d703d
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.DeleteFriendNotifyOuterClass.DeleteFriendNotify
;
public
class
PacketDeleteFriendNotify
extends
Genshin
Packet
{
public
class
PacketDeleteFriendNotify
extends
Base
Packet
{
public
PacketDeleteFriendNotify
(
int
targetUid
)
{
super
(
PacketOpcodes
.
DeleteFriendNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java
View file @
fa9d703d
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.DeleteFriendRspOuterClass.DeleteFriendRsp
;
public
class
PacketDeleteFriendRsp
extends
Genshin
Packet
{
public
class
PacketDeleteFriendRsp
extends
Base
Packet
{
public
PacketDeleteFriendRsp
(
int
targetUid
)
{
super
(
PacketOpcodes
.
DeleteFriendRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java
View file @
fa9d703d
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.DestroyMaterialRspOuterClass.DestroyMaterialRsp
;
import
it.unimi.dsi.fastutil.ints.Int2IntMap
;
import
it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap
;
public
class
PacketDestroyMaterialRsp
extends
Genshin
Packet
{
public
class
PacketDestroyMaterialRsp
extends
Base
Packet
{
public
PacketDestroyMaterialRsp
(
Int2IntOpenHashMap
returnMaterialMap
)
{
super
(
PacketOpcodes
.
DestroyMaterialRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java
View file @
fa9d703d
...
...
@@ -3,13 +3,13 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
import
emu.grasscutter.game.gacha.GachaBanner
;
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.DoGachaRspOuterClass.DoGachaRsp
;
import
emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketDoGachaRsp
extends
Genshin
Packet
{
public
class
PacketDoGachaRsp
extends
Base
Packet
{
public
PacketDoGachaRsp
(
GachaBanner
banner
,
List
<
GachaItem
>
list
)
{
super
(
PacketOpcodes
.
DoGachaRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp
;
public
class
PacketEnterSceneDoneRsp
extends
Genshin
Packet
{
public
class
PacketEnterSceneDoneRsp
extends
Base
Packet
{
public
PacketEnterSceneDoneRsp
(
Genshin
Player
player
)
{
public
PacketEnterSceneDoneRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
EnterSceneDoneRsp
);
EnterSceneDoneRsp
p
=
EnterSceneDoneRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify
;
public
class
PacketEnterScenePeerNotify
extends
Genshin
Packet
{
public
class
PacketEnterScenePeerNotify
extends
Base
Packet
{
public
PacketEnterScenePeerNotify
(
Genshin
Player
player
)
{
public
PacketEnterScenePeerNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
EnterScenePeerNotify
);
EnterScenePeerNotify
proto
=
EnterScenePeerNotify
.
newBuilder
()
...
...
Prev
1
…
5
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