Split the service and server functions

This commit is contained in:
Cyberboss
2017-11-12 23:48:54 -05:00
parent 6e54f622de
commit 1372f2daea
55 changed files with 1112 additions and 1129 deletions
@@ -0,0 +1,25 @@
using System.Collections.Generic;
using TGS.Interface;
namespace TGS.Server.ChatCommands
{
/// <summary>
/// The main root chat command
/// </summary>
sealed class RootChatCommand : RootCommand
{
/// <summary>
/// Construct a <see cref="RootChatCommand"/>
/// </summary>
/// <param name="serverCommands">List of <see cref="ServerChatCommand"/>s supplied by DreamDaemon</param>
public RootChatCommand(List<Command> serverCommands)
{
var tmp = new List<Command> { new PullRequestsCommand(), new VersionCommand(), new RevisionCommand(), new ByondCommand(), new KekCommand() };
if (serverCommands != null)
tmp.AddRange(serverCommands);
Children = tmp.ToArray();
serverCommands = new List<Command>();
PrintHelpList = true;
}
}
}