mirror of https://github.com/quasar/Quasar.git
27 lines
520 B
C#
27 lines
520 B
C#
![]() |
using ProtoBuf;
|
|||
|
|
|||
|
namespace Core.Packets.ServerPackets
|
|||
|
{
|
|||
|
[ProtoContract]
|
|||
|
public class Delete : IPacket
|
|||
|
{
|
|||
|
[ProtoMember(1)]
|
|||
|
public string Path { get; set; }
|
|||
|
|
|||
|
[ProtoMember(2)]
|
|||
|
public bool IsDir { get; set; }
|
|||
|
|
|||
|
public Delete() { }
|
|||
|
public Delete(string path, bool isdir)
|
|||
|
{
|
|||
|
this.Path = path;
|
|||
|
this.IsDir = isdir;
|
|||
|
}
|
|||
|
|
|||
|
public void Execute(Client client)
|
|||
|
{
|
|||
|
client.Send<Delete>(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|