mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 05:14:46 +01:00
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using KianaBH.Data;
|
|
using KianaBH.KcpSharp;
|
|
using KianaBH.Proto;
|
|
|
|
namespace KianaBH.GameServer.Server.Packet.Send.Challenge;
|
|
|
|
public class PacketGetChallengeStepCompensationInfoRsp : BasePacket
|
|
{
|
|
public PacketGetChallengeStepCompensationInfoRsp() : base(CmdIds.GetChallengeStepCompensationInfoRsp)
|
|
{
|
|
var proto = new GetChallengeStepCompensationInfoRsp
|
|
{
|
|
CompensationList =
|
|
{
|
|
GameData.StepMissionCompensationData.Values
|
|
.Select(m => new ChallengeStepCompensation
|
|
{
|
|
CompensationId = m.CompensationId,
|
|
IsTakeCompensation = true,
|
|
NewChallengeStepCompensationList =
|
|
{
|
|
m.NewChallengeStepIdList.Select(id => new StepCompensation { StepId = id })
|
|
},
|
|
OldChallengeStepCompensationList =
|
|
{
|
|
m.OldChallengeStepIdList.Select(id => new StepCompensation { StepId = id })
|
|
},
|
|
MainlineStepCompensationList =
|
|
{
|
|
m.MainLineStepIdList.Select(id => new StepCompensation { StepId = id })
|
|
},
|
|
})
|
|
}
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
}
|