mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
29 lines
808 B
C#
29 lines
808 B
C#
using EggLink.DanhengServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.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);
|
|
}
|
|
}
|
|
}
|