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/PacketServerTimeNotify.java
View file @
9fc8cc1c
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.ServerTimeNotifyOuterClass.ServerTimeNotify
;
public
class
PacketServerTimeNotify
extends
Genshin
Packet
{
public
class
PacketServerTimeNotify
extends
Base
Packet
{
public
PacketServerTimeNotify
()
{
super
(
PacketOpcodes
.
ServerTimeNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java
View file @
9fc8cc1c
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp
;
public
class
PacketSetEquipLockStateRsp
extends
Genshin
Packet
{
public
class
PacketSetEquipLockStateRsp
extends
Base
Packet
{
public
PacketSetEquipLockStateRsp
(
G
enshin
Item
equip
)
{
public
PacketSetEquipLockStateRsp
(
G
ame
Item
equip
)
{
super
(
PacketOpcodes
.
SetEquipLockStateRsp
);
this
.
buildHeader
(
0
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java
View file @
9fc8cc1c
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.SetNameCardRspOuterClass.SetNameCardRsp
;
public
class
PacketSetNameCardRsp
extends
Genshin
Packet
{
public
class
PacketSetNameCardRsp
extends
Base
Packet
{
public
PacketSetNameCardRsp
(
int
nameCardId
)
{
super
(
PacketOpcodes
.
SetNameCardRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerBirthdayRsp.java
View file @
9fc8cc1c
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.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp
;
import
emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass
;
public
class
PacketSetPlayerBirthdayRsp
extends
Genshin
Packet
{
public
class
PacketSetPlayerBirthdayRsp
extends
Base
Packet
{
public
PacketSetPlayerBirthdayRsp
(
int
retCode
)
{
super
(
PacketOpcodes
.
SetPlayerBirthdayRsp
);
...
...
@@ -17,7 +18,7 @@ public class PacketSetPlayerBirthdayRsp extends GenshinPacket {
this
.
setData
(
proto
);
}
public
PacketSetPlayerBirthdayRsp
(
Genshin
Player
player
)
{
public
PacketSetPlayerBirthdayRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
SetPlayerBirthdayRsp
);
SetPlayerBirthdayRsp
proto
=
SetPlayerBirthdayRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java
View file @
9fc8cc1c
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.HeadImageOuterClass.HeadImage
;
import
emu.grasscutter.net.proto.SetPlayerHeadImageRspOuterClass.SetPlayerHeadImageRsp
;
public
class
PacketSetPlayerHeadImageRsp
extends
Genshin
Packet
{
public
class
PacketSetPlayerHeadImageRsp
extends
Base
Packet
{
public
PacketSetPlayerHeadImageRsp
(
Genshin
Player
player
)
{
public
PacketSetPlayerHeadImageRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
SetPlayerHeadImageRsp
);
SetPlayerHeadImageRsp
proto
=
SetPlayerHeadImageRsp
.
newBuilder
()
.
setAvatar
(
HeadImage
.
newBuilder
().
setAvatarId
(
player
.
getHeadImage
()))
.
setAvatar
Id
(
HeadImage
.
newBuilder
().
setAvatarId
(
player
.
getHeadImage
())
.
getAvatarId
()
)
.
build
();
this
.
setData
(
proto
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java
View file @
9fc8cc1c
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.SetPlayerNameRspOuterClass.SetPlayerNameRsp
;
public
class
PacketSetPlayerNameRsp
extends
Genshin
Packet
{
public
class
PacketSetPlayerNameRsp
extends
Base
Packet
{
public
PacketSetPlayerNameRsp
(
Genshin
Player
player
)
{
public
PacketSetPlayerNameRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
SetPlayerNameRsp
);
SetPlayerNameRsp
proto
=
SetPlayerNameRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java
View file @
9fc8cc1c
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.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp
;
public
class
PacketSetPlayerSignatureRsp
extends
Genshin
Packet
{
public
class
PacketSetPlayerSignatureRsp
extends
Base
Packet
{
public
PacketSetPlayerSignatureRsp
(
Genshin
Player
player
)
{
public
PacketSetPlayerSignatureRsp
(
Player
player
)
{
super
(
PacketOpcodes
.
SetPlayerSignatureRsp
);
SetPlayerSignatureRsp
proto
=
SetPlayerSignatureRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java
View file @
9fc8cc1c
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.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp
;
public
class
PacketSetUpAvatarTeamRsp
extends
Genshin
Packet
{
public
class
PacketSetUpAvatarTeamRsp
extends
Base
Packet
{
public
PacketSetUpAvatarTeamRsp
(
Genshin
Player
player
,
int
teamId
,
TeamInfo
teamInfo
)
{
public
PacketSetUpAvatarTeamRsp
(
Player
player
,
int
teamId
,
TeamInfo
teamInfo
)
{
super
(
PacketOpcodes
.
SetUpAvatarTeamRsp
);
SetUpAvatarTeamRsp
.
Builder
proto
=
SetUpAvatarTeamRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSitRsp.java
deleted
100644 → 0
View file @
627a2f1e
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.net.packet.GenshinPacket
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.SitRspOuterClass.SitRsp
;
import
emu.grasscutter.utils.Position
;
public
class
PacketSitRsp
extends
GenshinPacket
{
public
PacketSitRsp
(
long
chairId
,
Position
pos
,
int
EntityId
)
{
super
(
PacketOpcodes
.
SitRsp
);
SitRsp
proto
=
SitRsp
.
newBuilder
()
.
setEntityId
(
EntityId
)
.
setPosition
(
pos
.
toProto
())
.
setChairId
(
chairId
)
.
build
();
this
.
setData
(
proto
);
}
}
src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java
View file @
9fc8cc1c
...
...
@@ -2,35 +2,35 @@ package emu.grasscutter.server.packet.send;
import
java.util.Collection
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify
;
import
emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType
;
public
class
PacketStoreItemChangeNotify
extends
Genshin
Packet
{
public
class
PacketStoreItemChangeNotify
extends
Base
Packet
{
private
PacketStoreItemChangeNotify
()
{
super
(
PacketOpcodes
.
StoreItemChangeNotify
);
}
public
PacketStoreItemChangeNotify
(
G
enshin
Item
item
)
{
public
PacketStoreItemChangeNotify
(
G
ame
Item
item
)
{
this
();
StoreItemChangeNotify
.
Builder
proto
=
StoreItemChangeNotify
.
newBuilder
()
.
setStoreType
(
StoreType
.
S
torePack
)
.
setStoreType
(
StoreType
.
S
TORE_PACK
)
.
addItemList
(
item
.
toProto
());
this
.
setData
(
proto
);
}
public
PacketStoreItemChangeNotify
(
Collection
<
G
enshin
Item
>
items
)
{
public
PacketStoreItemChangeNotify
(
Collection
<
G
ame
Item
>
items
)
{
this
();
StoreItemChangeNotify
.
Builder
proto
=
StoreItemChangeNotify
.
newBuilder
()
.
setStoreType
(
StoreType
.
S
torePack
);
.
setStoreType
(
StoreType
.
S
TORE_PACK
);
items
.
stream
().
forEach
(
item
->
proto
.
addItemList
(
item
.
toProto
()));
items
.
forEach
(
item
->
proto
.
addItemList
(
item
.
toProto
()));
this
.
setData
(
proto
);
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java
View file @
9fc8cc1c
...
...
@@ -2,33 +2,33 @@ package emu.grasscutter.server.packet.send;
import
java.util.Collection
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify
;
import
emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType
;
public
class
PacketStoreItemDelNotify
extends
Genshin
Packet
{
public
class
PacketStoreItemDelNotify
extends
Base
Packet
{
private
PacketStoreItemDelNotify
()
{
super
(
PacketOpcodes
.
StoreItemDelNotify
);
}
public
PacketStoreItemDelNotify
(
G
enshin
Item
item
)
{
public
PacketStoreItemDelNotify
(
G
ame
Item
item
)
{
this
();
StoreItemDelNotify
.
Builder
proto
=
StoreItemDelNotify
.
newBuilder
()
.
setStoreType
(
StoreType
.
S
torePack
)
.
setStoreType
(
StoreType
.
S
TORE_PACK
)
.
addGuidList
(
item
.
getGuid
());
this
.
setData
(
proto
);
}
public
PacketStoreItemDelNotify
(
Collection
<
G
enshin
Item
>
items
)
{
public
PacketStoreItemDelNotify
(
Collection
<
G
ame
Item
>
items
)
{
this
();
StoreItemDelNotify
.
Builder
proto
=
StoreItemDelNotify
.
newBuilder
()
.
setStoreType
(
StoreType
.
S
torePack
);
.
setStoreType
(
StoreType
.
S
TORE_PACK
);
items
.
stream
().
forEach
(
item
->
proto
.
addGuidList
(
item
.
getGuid
()));
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java
View file @
9fc8cc1c
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.Grasscutter
;
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.StoreTypeOuterClass.StoreType
;
import
emu.grasscutter.net.proto.StoreWeightLimitNotifyOuterClass.StoreWeightLimitNotify
;
public
class
PacketStoreWeightLimitNotify
extends
Genshin
Packet
{
public
class
PacketStoreWeightLimitNotify
extends
Base
Packet
{
public
PacketStoreWeightLimitNotify
()
{
super
(
PacketOpcodes
.
StoreWeightLimitNotify
);
StoreWeightLimitNotify
p
=
StoreWeightLimitNotify
.
newBuilder
()
.
setStoreType
(
StoreType
.
S
torePack
)
.
setStoreType
(
StoreType
.
S
TORE_PACK
)
.
setWeightLimit
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
InventoryLimitAll
)
.
setWeaponCountLimit
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
InventoryLimitWeapon
)
.
setReliquaryCountLimit
(
Grasscutter
.
getConfig
().
getGameServerOptions
().
InventoryLimitRelic
)
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java
View file @
9fc8cc1c
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.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify
;
public
class
PacketSyncScenePlayTeamEntityNotify
extends
Genshin
Packet
{
public
class
PacketSyncScenePlayTeamEntityNotify
extends
Base
Packet
{
public
PacketSyncScenePlayTeamEntityNotify
(
Genshin
Player
player
)
{
public
PacketSyncScenePlayTeamEntityNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
SyncScenePlayTeamEntityNotify
);
SyncScenePlayTeamEntityNotify
proto
=
SyncScenePlayTeamEntityNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java
View file @
9fc8cc1c
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.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo
;
import
emu.grasscutter.net.proto.SyncTeamEntityNotifyOuterClass.SyncTeamEntityNotify
;
import
emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo
;
public
class
PacketSyncTeamEntityNotify
extends
Genshin
Packet
{
public
class
PacketSyncTeamEntityNotify
extends
Base
Packet
{
public
PacketSyncTeamEntityNotify
(
Genshin
Player
player
)
{
public
PacketSyncTeamEntityNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
SyncTeamEntityNotify
);
SyncTeamEntityNotify
.
Builder
proto
=
SyncTeamEntityNotify
.
newBuilder
()
.
setSceneId
(
player
.
getSceneId
());
if
(
player
.
getWorld
().
isMultiplayer
())
{
for
(
Genshin
Player
p
:
player
.
getWorld
().
getPlayers
())
{
for
(
Player
p
:
player
.
getWorld
().
getPlayers
())
{
// Skip if same player
if
(
player
==
p
)
{
continue
;
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketTakePlayerLevelRewardRsp.java
View file @
9fc8cc1c
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.TakePlayerLevelRewardRspOuterClass.TakePlayerLevelRewardRsp
;
public
class
PacketTakePlayerLevelRewardRsp
extends
Genshin
Packet
{
public
class
PacketTakePlayerLevelRewardRsp
extends
Base
Packet
{
public
PacketTakePlayerLevelRewardRsp
(
int
level
,
int
rewardId
)
{
super
(
PacketOpcodes
.
TakePlayerLevelRewardRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java
View file @
9fc8cc1c
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.TakeoffEquipRspOuterClass.TakeoffEquipRsp
;
public
class
PacketTakeoffEquipRsp
extends
Genshin
Packet
{
public
class
PacketTakeoffEquipRsp
extends
Base
Packet
{
public
PacketTakeoffEquipRsp
(
long
avatarGuid
,
int
slot
)
{
super
(
PacketOpcodes
.
TakeoffEquipRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java
View file @
9fc8cc1c
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.TowerAllDataRspOuterClass.TowerAllDataRsp
;
import
emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord
;
import
emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord
;
public
class
PacketTowerAllDataRsp
extends
Genshin
Packet
{
public
class
PacketTowerAllDataRsp
extends
Base
Packet
{
public
PacketTowerAllDataRsp
()
{
super
(
PacketOpcodes
.
TowerAllDataRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java
View file @
9fc8cc1c
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.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp
;
public
class
PacketUnlockAvatarTalentRsp
extends
Genshin
Packet
{
public
class
PacketUnlockAvatarTalentRsp
extends
Base
Packet
{
public
PacketUnlockAvatarTalentRsp
(
Genshin
Avatar
avatar
,
int
talentId
)
{
public
PacketUnlockAvatarTalentRsp
(
Avatar
avatar
,
int
talentId
)
{
super
(
PacketOpcodes
.
UnlockAvatarTalentRsp
);
UnlockAvatarTalentRsp
proto
=
UnlockAvatarTalentRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java
View file @
9fc8cc1c
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.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify
;
public
class
PacketUnlockNameCardNotify
extends
Genshin
Packet
{
public
class
PacketUnlockNameCardNotify
extends
Base
Packet
{
public
PacketUnlockNameCardNotify
(
int
nameCard
)
{
super
(
PacketOpcodes
.
UnlockNameCardNotify
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java
View file @
9fc8cc1c
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.inventory.G
enshin
Item
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.inventory.G
ame
Item
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp
;
public
class
PacketUseItemRsp
extends
Genshin
Packet
{
public
class
PacketUseItemRsp
extends
Base
Packet
{
public
PacketUseItemRsp
(
long
targetGuid
,
G
enshin
Item
useItem
)
{
public
PacketUseItemRsp
(
long
targetGuid
,
G
ame
Item
useItem
)
{
super
(
PacketOpcodes
.
UseItemRsp
);
UseItemRsp
proto
=
UseItemRsp
.
newBuilder
()
...
...
@@ -22,7 +23,7 @@ public class PacketUseItemRsp extends GenshinPacket {
public
PacketUseItemRsp
()
{
super
(
PacketOpcodes
.
UseItemRsp
);
UseItemRsp
proto
=
UseItemRsp
.
newBuilder
().
setRetcode
(
1
).
build
();
UseItemRsp
proto
=
UseItemRsp
.
newBuilder
().
setRetcode
(
RetcodeOuterClass
.
Retcode
.
RET_SVR_ERROR_VALUE
).
build
();
this
.
setData
(
proto
);
}
...
...
Prev
1
…
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