Files
Quasar/Server/Core/Packets/ServerPackets/DoUploadFile.cs
T
MaxXor 23cafeb2f3 Switched from ProtoBuff to NetSerializer
NetSerializer should be slightly faster than Protocol Buffers
2015-08-08 16:21:09 +02:00

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);
}
}
}