25 lines
1017 B
C#
25 lines
1017 B
C#
using Galactic_Colors_Control_Common.Protocol;
|
|
using System.Net.Sockets;
|
|
|
|
namespace Galactic_Colors_Control_Server.Commands
|
|
{
|
|
public class ServerStopCommand : ICommand
|
|
{
|
|
public string Name { get { return "stop"; } }
|
|
public string DescText { get { return "Stop the server."; } }
|
|
public string HelpText { get { return "Use 'server stop' to completly stop server."; } }
|
|
public Manager.CommandGroup Group { get { return Manager.CommandGroup.server; } }
|
|
public bool IsServer { get { return true; } }
|
|
public bool IsClient { get { return false; } }
|
|
public bool IsClientSide { get { return false; } }
|
|
public bool IsNoConnect { get { return false; } }
|
|
public int minArgs { get { return 0; } }
|
|
public int maxArgs { get { return 0; } }
|
|
|
|
public RequestResult Execute(string[] args, Socket soc, bool server = false)
|
|
{
|
|
Program._run = false;
|
|
return new RequestResult(ResultTypes.OK);
|
|
}
|
|
}
|
|
} |