mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
22 lines
646 B
C#
22 lines
646 B
C#
using EggLink.DanhengServer.Database.Inventory;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Mission;
|
|
|
|
public class PacketSubMissionRewardScNotify : BasePacket
|
|
{
|
|
public PacketSubMissionRewardScNotify(int subMissionId, List<ItemData> item) : base(
|
|
CmdIds.SubMissionRewardScNotify)
|
|
{
|
|
var proto = new SubMissionRewardScNotify
|
|
{
|
|
SubMissionId = (uint)subMissionId,
|
|
Reward = new ItemList()
|
|
};
|
|
|
|
foreach (var i in item) proto.Reward.ItemList_.Add(i.ToProto());
|
|
|
|
SetData(proto);
|
|
}
|
|
} |