2014-07-17 21:22:59 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
2014-07-17 21:22:59 +00:00
|
|
|
|
{
|
|
|
|
|
[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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|