mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using EggLink.DanhengServer.Database.TrainParty;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.TrainParty;
|
|
|
|
public class PacketTrainPartyBuildDiyScRsp : BasePacket
|
|
{
|
|
public PacketTrainPartyBuildDiyScRsp(TrainAreaInfo? area) : base(CmdIds.TrainPartyBuildDiyScRsp)
|
|
{
|
|
var proto = area == null
|
|
? new TrainPartyBuildDiyScRsp
|
|
{
|
|
Retcode = (uint)Retcode.RetTrainPartyDiyTagNotMatch
|
|
}
|
|
: new TrainPartyBuildDiyScRsp
|
|
{
|
|
AreaId = (uint)area.AreaId,
|
|
DynamicInfo =
|
|
{
|
|
area.DynamicInfo.Select(x => new AreaDynamicInfo
|
|
{
|
|
DiceSlotId = (uint)x.Key,
|
|
DiyDynamicId = (uint)x.Value
|
|
})
|
|
}
|
|
//FFLPKLLDHLM = {new CIKOHJNAGON // TODO update
|
|
//{
|
|
// AreaId = (uint)area.AreaId,
|
|
// KCJBMKJLFBA = area.DynamicInfo.Select(x => new AreaDynamicInfo
|
|
// {
|
|
// DiceSlotId = (uint)x.Key,
|
|
// DiyDynamicId = (uint)x.Value
|
|
// }).First(),
|
|
//}}
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |