mirror of https://github.com/quasar/Quasar.git
23 lines
404 B
C#
23 lines
404 B
C#
|
using ProtoBuf;
|
|||
|
|
|||
|
namespace 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|