mirror of https://github.com/quasar/Quasar.git
27 lines
587 B
C#
27 lines
587 B
C#
using ProtoBuf;
|
|
using xServer.Core.Networking;
|
|
using ShutdownAction = xServer.Core.Commands.CommandHandler.ShutdownAction;
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
|
{
|
|
[ProtoContract]
|
|
public class DoShutdownAction : IPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public ShutdownAction Action { get; set; }
|
|
|
|
public DoShutdownAction()
|
|
{
|
|
}
|
|
|
|
public DoShutdownAction(ShutdownAction action)
|
|
{
|
|
this.Action = action;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.Send(this);
|
|
}
|
|
}
|
|
} |