Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Raid/PacketRaidInfoNotify.cs

29 lines
783 B
C#

using EggLink.DanhengServer.Database.Scene;
using EggLink.DanhengServer.Kcp;
using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Raid;
public class PacketRaidInfoNotify : BasePacket
{
public PacketRaidInfoNotify(RaidRecord record) : base(CmdIds.RaidInfoNotify)
{
var proto = new RaidInfoNotify
{
RaidId = (uint)record.RaidId,
Status = record.Status,
WorldLevel = (uint)record.WorldLevel,
RaidFinishTime = (ulong)record.FinishTimeStamp,
ItemList = new ItemList()
};
SetData(proto);
}
public PacketRaidInfoNotify() : base(CmdIds.RaidInfoNotify)
{
var proto = new RaidInfoNotify();
SetData(proto);
}
}