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