Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Others/PacketClientDownloadDataScNotify.cs
2024-05-06 22:41:55 +08:00

26 lines
779 B
C#

using EggLink.DanhengServer.Game.Player;
using EggLink.DanhengServer.Proto;
using System;
namespace EggLink.DanhengServer.Server.Packet.Send.Others
{
public class PacketClientDownloadDataScNotify : BasePacket
{
public PacketClientDownloadDataScNotify(byte[] data) : base(CmdIds.ClientDownloadDataScNotify)
{
var downloadData = new ClientDownloadData
{
Data = Google.Protobuf.ByteString.CopyFrom(data),
Version = 81,
Time = (long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds
};
var notify = new ClientDownloadDataScNotify
{
DownloadData = downloadData
};
SetData(notify);
}
}
}