mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled! - Code formatted by Resharper plugin <3
This commit is contained in:
@@ -1,28 +1,22 @@
|
||||
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
|
||||
namespace EggLink.DanhengServer.Server.Packet.Send.Scene;
|
||||
|
||||
public class PacketSceneEntityMoveScNotify : BasePacket
|
||||
{
|
||||
public class PacketSceneEntityMoveScNotify : BasePacket
|
||||
public PacketSceneEntityMoveScNotify(PlayerInstance player) : base(CmdIds.SceneEntityMoveScNotify)
|
||||
{
|
||||
public PacketSceneEntityMoveScNotify(PlayerInstance player) : base(CmdIds.SceneEntityMoveScNotify)
|
||||
var proto = new SceneEntityMoveScNotify
|
||||
{
|
||||
var proto = new SceneEntityMoveScNotify()
|
||||
EntryId = (uint)player.Data.EntryId,
|
||||
Motion = new MotionInfo
|
||||
{
|
||||
EntryId = (uint)player.Data.EntryId,
|
||||
Motion = new MotionInfo()
|
||||
{
|
||||
Pos = player.Data.Pos!.ToProto(),
|
||||
Rot = player.Data.Rot!.ToProto(),
|
||||
},
|
||||
};
|
||||
Pos = player.Data.Pos!.ToProto(),
|
||||
Rot = player.Data.Rot!.ToProto()
|
||||
}
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user