From 6ec4837523395accbb0ed8c9b206daa6882adc1a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 4 Aug 2017 18:35:53 -0400 Subject: chat stuff and eas failure --- ShiftOS.Frontend/Commands.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'ShiftOS.Frontend/Commands.cs') diff --git a/ShiftOS.Frontend/Commands.cs b/ShiftOS.Frontend/Commands.cs index 67bf94f..e557ea2 100644 --- a/ShiftOS.Frontend/Commands.cs +++ b/ShiftOS.Frontend/Commands.cs @@ -44,6 +44,30 @@ using ShiftOS.Engine; namespace ShiftOS.Frontend { + public static class FrontendDebugCommands + { + /// + /// Debug command to drop a fatal objective/hack failure screen in the form of an emergency alert system-esque screen. + /// + /// ...Because WE'RE CANADA. + /// + [Command("drop_eas")] + [ShellConstraint("shiftos_debug> ")] + [RequiresArgument("id")] + public static void DropEAS(Dictionary args) + { + Story.DisplayFailure(args["id"].ToString()); + } + + [Command("loaddefaultskn")] + [ShellConstraint("shiftos_debug> ")] + public static void LoadDefault() + { + Utils.Delete(Paths.GetPath("skin.json")); + SkinEngine.Init(); + } + } + public static class Cowsay { [Command("cowsay")] -- cgit v1.2.3