mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
22 lines
641 B
C#
22 lines
641 B
C#
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Scene;
|
|
|
|
public class PacketSceneEntityMoveScNotify : BasePacket
|
|
{
|
|
public PacketSceneEntityMoveScNotify(PlayerInstance player) : base(CmdIds.SceneEntityMoveScNotify)
|
|
{
|
|
var proto = new SceneEntityMoveScNotify
|
|
{
|
|
EntryId = (uint)player.Data.EntryId,
|
|
Motion = new MotionInfo
|
|
{
|
|
Pos = player.Data.Pos!.ToProto(),
|
|
Rot = player.Data.Rot!.ToProto()
|
|
}
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |