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

27 lines
587 B
C#
Raw Normal View History

using ProtoBuf;
using xServer.Core.Networking;
2015-07-14 21:48:24 +00:00
using ShutdownAction = xServer.Core.Commands.CommandHandler.ShutdownAction;
2015-01-13 18:29:11 +00:00
namespace xServer.Core.Packets.ServerPackets
{
[ProtoContract]
2015-07-14 17:00:31 +00:00
public class DoShutdownAction : IPacket
{
[ProtoMember(1)]
2015-07-14 21:48:24 +00:00
public ShutdownAction Action { get; set; }
2015-07-14 17:00:31 +00:00
public DoShutdownAction()
{
}
2015-07-14 21:48:24 +00:00
public DoShutdownAction(ShutdownAction action)
{
2015-07-14 21:48:24 +00:00
this.Action = action;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}