mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
21 lines
569 B
C#
21 lines
569 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);
|
|
}
|
|
}
|
|
}
|