mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 14:54:38 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user