using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cabrito { // Holds common miscellaneous Console variables and commands public static class CommonCommands { [ConsoleCommand("")] public static void NullCommand() { } [ConsoleCommand("echo")] public static void EchoCommand() { Console.Print("nothing"); } [ConsoleCommand("echo")] public static void EchoCommand(string[] text) { Console.Print(string.Join(" ", text)); } [ConsoleCommand("debugthrow")] public static void DebugThrowCommand(string[] text) { throw new Exception(string.Join(" ", text)); } [ConsoleVariable("developer")] public static string Developer { get { return Console.DebugVerbosity.ToString(); } set { if (int.TryParse(value, out int intValue) && intValue >= 0) Console.DebugVerbosity = intValue; } } } }