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
9fc8cc1c
Commit
9fc8cc1c
authored
Apr 27, 2022
by
Kengxxiao
Committed by
GitHub
Apr 27, 2022
Browse files
Merge pull request #1 from Grasscutters/development
merge
parents
627a2f1e
d1fc8c1f
Changes
297
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java
View file @
9fc8cc1c
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.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp
;
import
emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp
;
public
class
PacketChooseCurAvatarTeamRsp
extends
Genshin
Packet
{
public
class
PacketChooseCurAvatarTeamRsp
extends
Base
Packet
{
public
PacketChooseCurAvatarTeamRsp
(
int
teamId
)
{
public
PacketChooseCurAvatarTeamRsp
(
int
teamId
)
{
super
(
PacketOpcodes
.
ChooseCurAvatarTeamRsp
);
super
(
PacketOpcodes
.
ChooseCurAvatarTeamRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketClientAbilityInitFinishNotify.java
View file @
9fc8cc1c
...
@@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
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.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry
;
import
emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry
;
import
emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify
;
import
emu.grasscutter.net.proto.ClientAbilityInitFinishNotifyOuterClass.ClientAbilityInitFinishNotify
;
public
class
PacketClientAbilityInitFinishNotify
extends
Genshin
Packet
{
public
class
PacketClientAbilityInitFinishNotify
extends
Base
Packet
{
public
PacketClientAbilityInitFinishNotify
(
List
<
AbilityInvokeEntry
>
entries
)
{
public
PacketClientAbilityInitFinishNotify
(
List
<
AbilityInvokeEntry
>
entries
)
{
super
(
PacketOpcodes
.
ClientAbilityInitFinishNotify
,
true
);
super
(
PacketOpcodes
.
ClientAbilityInitFinishNotify
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java
View file @
9fc8cc1c
...
@@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,12 +2,12 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
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.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify
;
import
emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify
;
import
emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry
;
import
emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry
;
public
class
PacketCombatInvocationsNotify
extends
Genshin
Packet
{
public
class
PacketCombatInvocationsNotify
extends
Base
Packet
{
public
PacketCombatInvocationsNotify
(
CombatInvokeEntry
entry
)
{
public
PacketCombatInvocationsNotify
(
CombatInvokeEntry
entry
)
{
super
(
PacketOpcodes
.
CombatInvocationsNotify
,
true
);
super
(
PacketOpcodes
.
CombatInvocationsNotify
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketCombineRsp.java
0 → 100644
View file @
9fc8cc1c
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.BasePacket
;
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
BasePacket
{
public
PacketCombineRsp
()
{
super
(
PacketOpcodes
.
CombineRsp
);
CombineRspOuterClass
.
CombineRsp
proto
=
CombineRspOuterClass
.
CombineRsp
.
newBuilder
()
.
setRetcode
(
RetcodeOuterClass
.
Retcode
.
RET_SVR_ERROR_VALUE
).
build
();
this
.
setData
(
proto
);
}
public
PacketCombineRsp
(
int
retcode
)
{
super
(
PacketOpcodes
.
CombineRsp
);
CombineRspOuterClass
.
CombineRsp
proto
=
CombineRspOuterClass
.
CombineRsp
.
newBuilder
()
.
setRetcode
(
retcode
).
build
();
this
.
setData
(
proto
);
}
public
PacketCombineRsp
(
CombineReqOuterClass
.
CombineReq
combineReq
,
Iterable
<
ItemParamOuterClass
.
ItemParam
>
costItemList
,
Iterable
<
ItemParamOuterClass
.
ItemParam
>
resultItemList
,
Iterable
<
ItemParamOuterClass
.
ItemParam
>
totalRandomItemList
,
Iterable
<
ItemParamOuterClass
.
ItemParam
>
totalReturnItemList
,
Iterable
<
ItemParamOuterClass
.
ItemParam
>
totalExtraItemList
)
{
super
(
PacketOpcodes
.
CombineRsp
);
CombineRspOuterClass
.
CombineRsp
proto
=
CombineRspOuterClass
.
CombineRsp
.
newBuilder
()
.
setRetcode
(
RetcodeOuterClass
.
Retcode
.
RET_SUCC_VALUE
)
.
setCombineId
(
combineReq
.
getCombineId
())
.
setCombineCount
(
combineReq
.
getCombineCount
())
.
setAvatarGuid
(
combineReq
.
getAvatarGuid
())
.
addAllCostItemList
(
costItemList
)
.
addAllResultItemList
(
resultItemList
)
.
addAllTotalRandomItemList
(
totalRandomItemList
)
.
addAllTotalReturnItemList
(
totalReturnItemList
)
.
addAllTotalExtraItemList
(
totalExtraItemList
)
.
build
();
this
.
setData
(
proto
);
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java
View file @
9fc8cc1c
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.DealAddFriendResultTypeOuterClass.DealAddFriendResultType
;
import
emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType
;
import
emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp
;
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
)
{
public
PacketDealAddFriendRsp
(
int
targetUid
,
DealAddFriendResultType
result
)
{
super
(
PacketOpcodes
.
DealAddFriendRsp
);
super
(
PacketOpcodes
.
DealAddFriendRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDelMailRsp.java
0 → 100644
View file @
9fc8cc1c
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 @
9fc8cc1c
...
@@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send;
...
@@ -2,11 +2,11 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
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.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify
;
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
)
{
public
PacketDelTeamEntityNotify
(
int
sceneId
,
int
teamEntityId
)
{
super
(
PacketOpcodes
.
DelTeamEntityNotify
);
super
(
PacketOpcodes
.
DelTeamEntityNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java
View file @
9fc8cc1c
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.DeleteFriendNotifyOuterClass.DeleteFriendNotify
;
import
emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify
;
public
class
PacketDeleteFriendNotify
extends
Genshin
Packet
{
public
class
PacketDeleteFriendNotify
extends
Base
Packet
{
public
PacketDeleteFriendNotify
(
int
targetUid
)
{
public
PacketDeleteFriendNotify
(
int
targetUid
)
{
super
(
PacketOpcodes
.
DeleteFriendNotify
);
super
(
PacketOpcodes
.
DeleteFriendNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java
View file @
9fc8cc1c
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.DeleteFriendRspOuterClass.DeleteFriendRsp
;
import
emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp
;
public
class
PacketDeleteFriendRsp
extends
Genshin
Packet
{
public
class
PacketDeleteFriendRsp
extends
Base
Packet
{
public
PacketDeleteFriendRsp
(
int
targetUid
)
{
public
PacketDeleteFriendRsp
(
int
targetUid
)
{
super
(
PacketOpcodes
.
DeleteFriendRsp
);
super
(
PacketOpcodes
.
DeleteFriendRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java
View file @
9fc8cc1c
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.DestroyMaterialRspOuterClass.DestroyMaterialRsp
;
import
emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp
;
import
it.unimi.dsi.fastutil.ints.Int2IntMap
;
import
it.unimi.dsi.fastutil.ints.Int2IntMap
;
import
it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap
;
import
it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap
;
public
class
PacketDestroyMaterialRsp
extends
Genshin
Packet
{
public
class
PacketDestroyMaterialRsp
extends
Base
Packet
{
public
PacketDestroyMaterialRsp
(
Int2IntOpenHashMap
returnMaterialMap
)
{
public
PacketDestroyMaterialRsp
(
Int2IntOpenHashMap
returnMaterialMap
)
{
super
(
PacketOpcodes
.
DestroyMaterialRsp
);
super
(
PacketOpcodes
.
DestroyMaterialRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java
View file @
9fc8cc1c
...
@@ -3,12 +3,13 @@ package emu.grasscutter.server.packet.send;
...
@@ -3,12 +3,13 @@ package emu.grasscutter.server.packet.send;
import
java.util.List
;
import
java.util.List
;
import
emu.grasscutter.game.gacha.GachaBanner
;
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.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp
;
import
emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp
;
import
emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem
;
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
)
{
public
PacketDoGachaRsp
(
GachaBanner
banner
,
List
<
GachaItem
>
list
)
{
super
(
PacketOpcodes
.
DoGachaRsp
);
super
(
PacketOpcodes
.
DoGachaRsp
);
...
@@ -33,7 +34,7 @@ public class PacketDoGachaRsp extends GenshinPacket {
...
@@ -33,7 +34,7 @@ public class PacketDoGachaRsp extends GenshinPacket {
super
(
PacketOpcodes
.
DoGachaRsp
);
super
(
PacketOpcodes
.
DoGachaRsp
);
DoGachaRsp
p
=
DoGachaRsp
.
newBuilder
()
DoGachaRsp
p
=
DoGachaRsp
.
newBuilder
()
.
setRetcode
(
1
)
.
setRetcode
(
RetcodeOuterClass
.
Retcode
.
RET_SVR_ERROR_VALUE
)
.
build
();
.
build
();
this
.
setData
(
p
);
this
.
setData
(
p
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java
View file @
9fc8cc1c
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.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp
;
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
);
super
(
PacketOpcodes
.
EnterSceneDoneRsp
);
EnterSceneDoneRsp
p
=
EnterSceneDoneRsp
.
newBuilder
()
EnterSceneDoneRsp
p
=
EnterSceneDoneRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java
View file @
9fc8cc1c
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.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify
;
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
);
super
(
PacketOpcodes
.
EnterScenePeerNotify
);
EnterScenePeerNotify
proto
=
EnterScenePeerNotify
.
newBuilder
()
EnterScenePeerNotify
proto
=
EnterScenePeerNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java
View file @
9fc8cc1c
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.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp
;
import
emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp
;
public
class
PacketEnterSceneReadyRsp
extends
Genshin
Packet
{
public
class
PacketEnterSceneReadyRsp
extends
Base
Packet
{
public
PacketEnterSceneReadyRsp
(
Genshin
Player
player
)
{
public
PacketEnterSceneReadyRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
EnterSceneReadyRsp
,
11
);
super
(
PacketOpcodes
.
EnterSceneReadyRsp
,
11
);
EnterSceneReadyRsp
p
=
EnterSceneReadyRsp
.
newBuilder
()
EnterSceneReadyRsp
p
=
EnterSceneReadyRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java
View file @
9fc8cc1c
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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq
;
import
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq
;
import
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp
;
import
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp
;
public
class
PacketEnterWorldAreaRsp
extends
Genshin
Packet
{
public
class
PacketEnterWorldAreaRsp
extends
Base
Packet
{
public
PacketEnterWorldAreaRsp
(
int
clientSequence
,
EnterWorldAreaReq
enterWorld
)
{
public
PacketEnterWorldAreaRsp
(
int
clientSequence
,
EnterWorldAreaReq
enterWorld
)
{
super
(
PacketOpcodes
.
EnterWorldAreaRsp
,
clientSequence
);
super
(
PacketOpcodes
.
EnterWorldAreaRsp
,
clientSequence
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java
View file @
9fc8cc1c
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.AiSyncInfoOuterClass.AiSyncInfo
;
import
emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo
;
import
emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify
;
import
emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify
;
public
class
PacketEntityAiSyncNotify
extends
Genshin
Packet
{
public
class
PacketEntityAiSyncNotify
extends
Base
Packet
{
public
PacketEntityAiSyncNotify
(
EntityAiSyncNotify
notify
)
{
public
PacketEntityAiSyncNotify
(
EntityAiSyncNotify
notify
)
{
super
(
PacketOpcodes
.
EntityAiSyncNotify
,
true
);
super
(
PacketOpcodes
.
EntityAiSyncNotify
,
true
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java
View file @
9fc8cc1c
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.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.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify
;
import
emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify
;
public
class
PacketEntityFightPropUpdateNotify
extends
Genshin
Packet
{
public
class
PacketEntityFightPropUpdateNotify
extends
Base
Packet
{
public
PacketEntityFightPropUpdateNotify
(
G
enshin
Entity
entity
,
FightProperty
prop
)
{
public
PacketEntityFightPropUpdateNotify
(
G
ame
Entity
entity
,
FightProperty
prop
)
{
super
(
PacketOpcodes
.
EntityFightPropUpdateNotify
);
super
(
PacketOpcodes
.
EntityFightPropUpdateNotify
);
EntityFightPropUpdateNotify
proto
=
EntityFightPropUpdateNotify
.
newBuilder
()
EntityFightPropUpdateNotify
proto
=
EntityFightPropUpdateNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketEvtAvatarSitDownNotify.java
View file @
9fc8cc1c
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.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify
;
import
emu.grasscutter.net.proto.EvtAvatarSitDownNotifyOuterClass.EvtAvatarSitDownNotify
;
public
class
PacketEvtAvatarSitDownNotify
extends
Genshin
Packet
{
public
class
PacketEvtAvatarSitDownNotify
extends
Base
Packet
{
public
PacketEvtAvatarSitDownNotify
(
EvtAvatarSitDownNotify
notify
)
{
public
PacketEvtAvatarSitDownNotify
(
EvtAvatarSitDownNotify
notify
)
{
super
(
PacketOpcodes
.
EvtAvatarSitDownNotify
);
super
(
PacketOpcodes
.
EvtAvatarSitDownNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java
View file @
9fc8cc1c
package
emu.grasscutter.server.packet.send
;
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.entity.EntityGadget
;
import
emu.grasscutter.game.entity.EntityGadget
;
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.GadgetInteractRspOuterClass.GadgetInteractRsp
;
import
emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp
;
import
emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType
;
import
emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
public
class
PacketGadgetInteractRsp
extends
Genshin
Packet
{
public
class
PacketGadgetInteractRsp
extends
Base
Packet
{
public
PacketGadgetInteractRsp
(
EntityGadget
gadget
,
InteractType
interact
)
{
public
PacketGadgetInteractRsp
(
EntityGadget
gadget
,
InteractType
interact
)
{
super
(
PacketOpcodes
.
GadgetInteractRsp
);
super
(
PacketOpcodes
.
GadgetInteractRsp
);
...
@@ -23,7 +24,7 @@ public class PacketGadgetInteractRsp extends GenshinPacket {
...
@@ -23,7 +24,7 @@ public class PacketGadgetInteractRsp extends GenshinPacket {
super
(
PacketOpcodes
.
GadgetInteractRsp
);
super
(
PacketOpcodes
.
GadgetInteractRsp
);
GadgetInteractRsp
proto
=
GadgetInteractRsp
.
newBuilder
()
GadgetInteractRsp
proto
=
GadgetInteractRsp
.
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/PacketGetActivityInfoRsp.java
View file @
9fc8cc1c
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.GetActivityInfoRspOuterClass.GetActivityInfoRsp
;
import
emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp
;
public
class
PacketGetActivityInfoRsp
extends
Genshin
Packet
{
public
class
PacketGetActivityInfoRsp
extends
Base
Packet
{
public
PacketGetActivityInfoRsp
()
{
public
PacketGetActivityInfoRsp
()
{
super
(
PacketOpcodes
.
GetActivityInfoRsp
);
super
(
PacketOpcodes
.
GetActivityInfoRsp
);
...
...
Prev
1
…
6
7
8
9
10
11
12
13
14
15
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