mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
26 lines
767 B
C#
26 lines
767 B
C#
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;
|
|
}
|
|
}
|
|
}
|