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
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.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.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp
;
public
class
PacketSceneKickPlayerRsp
extends
Genshin
Packet
{
public
class
PacketSceneKickPlayerRsp
extends
Base
Packet
{
public
PacketSceneKickPlayerRsp
(
int
targetUid
)
{
super
(
PacketOpcodes
.
SceneKickPlayerRsp
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.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.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify
;
import
emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo
;
public
class
PacketScenePlayerInfoNotify
extends
Genshin
Packet
{
public
class
PacketScenePlayerInfoNotify
extends
Base
Packet
{
public
PacketScenePlayerInfoNotify
(
World
world
)
{
super
(
PacketOpcodes
.
ScenePlayerInfoNotify
);
...
...
@@ -15,7 +15,7 @@ public class PacketScenePlayerInfoNotify extends GenshinPacket {
ScenePlayerInfoNotify
.
Builder
proto
=
ScenePlayerInfoNotify
.
newBuilder
();
for
(
int
i
=
0
;
i
<
world
.
getPlayers
().
size
();
i
++)
{
Genshin
Player
p
=
world
.
getPlayers
().
get
(
i
);
Player
p
=
world
.
getPlayers
().
get
(
i
);
ScenePlayerInfo
pInfo
=
ScenePlayerInfo
.
newBuilder
()
.
setUid
(
p
.
getUid
())
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.
Genshin
Player
;
import
emu.grasscutter.game.
Genshin
Scene
;
import
emu.grasscutter.net.packet.
Genshin
Packet
;
import
emu.grasscutter.game.
player.
Player
;
import
emu.grasscutter.game.
world.
Scene
;
import
emu.grasscutter.net.packet.
Base
Packet
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify
;
public
class
PacketScenePlayerLocationNotify
extends
Genshin
Packet
{
public
class
PacketScenePlayerLocationNotify
extends
Base
Packet
{
public
PacketScenePlayerLocationNotify
(
Genshin
Scene
scene
)
{
public
PacketScenePlayerLocationNotify
(
Scene
scene
)
{
super
(
PacketOpcodes
.
ScenePlayerLocationNotify
);
ScenePlayerLocationNotify
.
Builder
proto
=
ScenePlayerLocationNotify
.
newBuilder
()
.
setSceneId
(
scene
.
getId
());
for
(
Genshin
Player
p
:
scene
.
getPlayers
())
{
for
(
Player
p
:
scene
.
getPlayers
())
{
proto
.
addPlayerLocList
(
p
.
getPlayerLocationInfo
());
}
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.game.GenshinPlayer
;
import
emu.grasscutter.game.entity.EntityAvatar
;
import
emu.grasscutter.net.packet.GenshinPacket
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.net.packet.BasePacket
;
import
emu.grasscutter.net.packet.PacketOpcodes
;
import
emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo
;
import
emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar
;
import
emu.grasscutter.net.proto.SceneTeamUpdateNotifyOuterClass.SceneTeamUpdateNotify
;
public
class
PacketSceneTeamUpdateNotify
extends
Genshin
Packet
{
public
class
PacketSceneTeamUpdateNotify
extends
Base
Packet
{
public
PacketSceneTeamUpdateNotify
(
Genshin
Player
player
)
{
public
PacketSceneTeamUpdateNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
SceneTeamUpdateNotify
);
SceneTeamUpdateNotify
.
Builder
proto
=
SceneTeamUpdateNotify
.
newBuilder
()
.
setIsInMp
(
player
.
getWorld
().
isMultiplayer
());
for
(
Genshin
Player
p
:
player
.
getWorld
().
getPlayers
())
{
for
(
Player
p
:
player
.
getWorld
().
getPlayers
())
{
for
(
EntityAvatar
entityAvatar
:
p
.
getTeamManager
().
getActiveTeam
())
{
SceneTeamAvatar
.
Builder
avatarProto
=
SceneTeamAvatar
.
newBuilder
()
.
setPlayerUid
(
p
.
getUid
())
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.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.SceneTimeNotifyOuterClass.SceneTimeNotify
;
public
class
PacketSceneTimeNotify
extends
Genshin
Packet
{
public
class
PacketSceneTimeNotify
extends
Base
Packet
{
public
PacketSceneTimeNotify
(
Genshin
Player
player
)
{
public
PacketSceneTimeNotify
(
Player
player
)
{
super
(
PacketOpcodes
.
SceneTimeNotify
);
SceneTimeNotify
proto
=
SceneTimeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneTransToPointRsp.java
View file @
fa9d703d
package
emu.grasscutter.server.packet.send
;
import
emu.grasscutter.data.G
enshin
Data
;
import
emu.grasscutter.data.G
ame
Data
;
import
emu.grasscutter.data.custom.ScenePointEntry
;
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.RetcodeOuterClass
;
import
emu.grasscutter.net.proto.SceneTransToPointRspOuterClass.SceneTransToPointRsp
;
import
emu.grasscutter.utils.Position
;
public
class
PacketSceneTransToPointRsp
extends
Genshin
Packet
{
public
class
PacketSceneTransToPointRsp
extends
Base
Packet
{
public
PacketSceneTransToPointRsp
(
Genshin
Player
player
,
int
pointId
,
int
sceneId
)
{
public
PacketSceneTransToPointRsp
(
Player
player
,
int
pointId
,
int
sceneId
)
{
super
(
PacketOpcodes
.
SceneTransToPointRsp
);
SceneTransToPointRsp
proto
=
SceneTransToPointRsp
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSceneUnlockInfoNotify.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.SceneUnlockInfoNotifyOuterClass.SceneUnlockInfoNotify
;
import
emu.grasscutter.net.proto.SceneUnlockInfoOuterClass.SceneUnlockInfo
;
public
class
PacketSceneUnlockInfoNotify
extends
Genshin
Packet
{
public
class
PacketSceneUnlockInfoNotify
extends
Base
Packet
{
public
PacketSceneUnlockInfoNotify
()
{
super
(
PacketOpcodes
.
SceneUnlockInfoNotify
);
// Rename opcode later
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.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.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 @
fa9d703d
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 @
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.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 @
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.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
);
...
...
@@ -18,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 @
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.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
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.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.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 @
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.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 @
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.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/PacketStoreItemChangeNotify.java
View file @
fa9d703d
...
...
@@ -2,19 +2,19 @@ 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
()
...
...
@@ -24,7 +24,7 @@ public class PacketStoreItemChangeNotify extends GenshinPacket {
this
.
setData
(
proto
);
}
public
PacketStoreItemChangeNotify
(
Collection
<
G
enshin
Item
>
items
)
{
public
PacketStoreItemChangeNotify
(
Collection
<
G
ame
Item
>
items
)
{
this
();
StoreItemChangeNotify
.
Builder
proto
=
StoreItemChangeNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java
View file @
fa9d703d
...
...
@@ -2,19 +2,19 @@ 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
()
...
...
@@ -24,7 +24,7 @@ public class PacketStoreItemDelNotify extends GenshinPacket {
this
.
setData
(
proto
);
}
public
PacketStoreItemDelNotify
(
Collection
<
G
enshin
Item
>
items
)
{
public
PacketStoreItemDelNotify
(
Collection
<
G
ame
Item
>
items
)
{
this
();
StoreItemDelNotify
.
Builder
proto
=
StoreItemDelNotify
.
newBuilder
()
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java
View file @
fa9d703d
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
);
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.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.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 @
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.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
;
...
...
Prev
1
…
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