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 Desktop : IPacket
|
|||
|
{
|
|||
|
[ProtoMember(1)]
|
|||
|
public int Mode { get; set; }
|
|||
|
|
|||
|
[ProtoMember(2)]
|
|||
|
public int Number { get; set; }
|
|||
|
|
|||
|
public Desktop() { }
|
|||
|
public Desktop(int mode, int number)
|
|||
|
{
|
|||
|
this.Mode = mode;
|
|||
|
this.Number = number;
|
|||
|
}
|
|||
|
|
|||
|
public void Execute(Client client)
|
|||
|
{
|
|||
|
client.Send<Desktop>(this);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|