Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Scene/PacketInteractPropScRsp.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

20 lines
515 B
C#

using EggLink.DanhengServer.Game.Scene.Entity;
using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.Server.Packet.Send.Scene;
public class PacketInteractPropScRsp : BasePacket
{
public PacketInteractPropScRsp(EntityProp? prop) : base(CmdIds.InteractPropScRsp)
{
var proto = new InteractPropScRsp();
if (prop != null)
{
proto.PropState = (uint)prop.State;
proto.PropEntityId = (uint)prop.EntityID;
}
SetData(proto);
}
}