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

24 lines
820 B
C#

using EggLink.DanhengServer.Game.Player;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Server.Packet;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Raid;
public class PacketGetRaidInfoScRsp : BasePacket
{
public PacketGetRaidInfoScRsp(PlayerInstance player) : base(CmdIds.GetRaidInfoScRsp)
{
var proto = new GetRaidInfoScRsp();
foreach (var recordDict in player.RaidManager!.RaidData.RaidRecordDatas)
foreach (var record in recordDict.Value)
if (record.Value.Status == RaidStatus.Finish)
proto.FinishedRaidInfoList.Add(new RaidInfo
{
RaidId = (uint)record.Value.RaidId,
WorldLevel = (uint)record.Value.WorldLevel
});
SetData(proto);
}
}