mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
24 lines
829 B
C#
24 lines
829 B
C#
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
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 FinishedRaidInfo
|
|
{
|
|
RaidId = (uint)record.Value.RaidId,
|
|
WorldLevel = (uint)record.Value.WorldLevel
|
|
});
|
|
|
|
SetData(proto);
|
|
}
|
|
} |