mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Split the service and server functions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user