mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using EggLink.DanhengServer.Data;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Player;
|
|
|
|
public class PacketGetArchiveDataScRsp : BasePacket
|
|
{
|
|
public PacketGetArchiveDataScRsp() : base(CmdIds.GetArchiveDataScRsp)
|
|
{
|
|
var proto = new GetArchiveDataScRsp();
|
|
|
|
var info = new ArchiveData();
|
|
|
|
GameData.MonsterConfigData.Values.ToList().ForEach(monster =>
|
|
{
|
|
info.ArchiveMonsterIdList.Add(new ArchiveMonsterId
|
|
{
|
|
MonsterId = (uint)monster.GetId(),
|
|
Num = 1
|
|
});
|
|
});
|
|
|
|
info.ArchiveAvatarIdList.Add(23027);
|
|
|
|
GameData.EquipmentConfigData.Values.ToList().ForEach(equipment =>
|
|
{
|
|
info.ArchiveEquipmentIdList.Add((uint)equipment.GetId());
|
|
});
|
|
|
|
GameData.RelicConfigData.Values.ToList().ForEach(relic =>
|
|
{
|
|
info.RelicList.Add(new RelicList
|
|
{
|
|
SetId = (uint)relic.ID,
|
|
Type = (uint)relic.Type
|
|
});
|
|
});
|
|
|
|
proto.ArchiveInfo = info;
|
|
|
|
SetData(proto);
|
|
}
|
|
} |