Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Raid/PacketRaidInfoNotify.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

32 lines
849 B
C#

using EggLink.DanhengServer.Database.Scene;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Server.Packet;
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
{
ItemList = new ItemList()
};
SetData(proto);
}
}