Quasar/Server/Core/Packets/ServerPackets/Desktop.cs

27 lines
540 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
2015-01-13 18:29:11 +00:00
namespace xServer.Core.Packets.ServerPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
public class Desktop : IPacket
{
[ProtoMember(1)]
public int Quality { get; set; }
2014-07-08 12:58:53 +00:00
[ProtoMember(2)]
public int Number { get; set; }
public Desktop() { }
public Desktop(int quality, int number)
2014-07-08 12:58:53 +00:00
{
this.Quality = quality;
2014-07-08 12:58:53 +00:00
this.Number = number;
}
public void Execute(Client client)
{
client.Send<Desktop>(this);
}
}
}