aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/HackerTestCommands.cs
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-07-27 16:34:27 -0700
committerwilliam341 <[email protected]>2017-07-27 16:34:27 -0700
commit18079c6f43981f1bf9fc093b3c5b68873fe90348 (patch)
tree7be93f2caeaca5208a02be627cb50d36e718cad1 /ShiftOS.Frontend/HackerTestCommands.cs
parent86dde20529e926ee75af2b1e3a574f6729bd8771 (diff)
downloadshiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.gz
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.bz2
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.zip
hacking p1
Diffstat (limited to 'ShiftOS.Frontend/HackerTestCommands.cs')
-rw-r--r--ShiftOS.Frontend/HackerTestCommands.cs59
1 files changed, 0 insertions, 59 deletions
diff --git a/ShiftOS.Frontend/HackerTestCommands.cs b/ShiftOS.Frontend/HackerTestCommands.cs
deleted file mode 100644
index 675356a..0000000
--- a/ShiftOS.Frontend/HackerTestCommands.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using ShiftOS.Engine;
-
-#if DEBUG
-namespace ShiftOS.Frontend
-{
- public static class HackerTestCommands
- {
- [Command("lshackables")]
- public static void ListAllHackables()
- {
- foreach(var hackable in Hacking.AvailableToHack)
- {
- Console.WriteLine(hackable.ID + ": " + hackable.FriendlyName);
- }
- }
-
- [Command("describebackable")]
- [RequiresArgument("id")]
- public static void DescribeHackable(Dictionary<string, object> args)
- {
- string id = args["id"].ToString();
- var hackable = Hacking.AvailableToHack.FirstOrDefault(x => x.ID == id);
- if(hackable == null)
- {
- Console.WriteLine("Hackable not found.");
- return;
- }
- Console.WriteLine(hackable.FriendlyName);
- Console.WriteLine("------------------------");
- Console.WriteLine();
- Console.WriteLine("System name: " + hackable.SystemName);
- Console.WriteLine("Loot rarity: " + hackable.LootRarity);
- Console.WriteLine("Loot amount: " + hackable.LootAmount);
- Console.WriteLine("Connection timeout level: " + hackable.ConnectionTimeoutLevel);
- Console.WriteLine();
- Console.WriteLine(hackable.WelcomeMessage);
- }
-
- [Command("inithack")]
- [RequiresArgument("id")]
- public static void InitHack(Dictionary<string, object> args)
- {
- string id = args["id"].ToString();
- var hackable = Hacking.AvailableToHack.FirstOrDefault(x => x.ID == id);
- if (hackable == null)
- {
- Console.WriteLine("Hackable not found.");
- return;
- }
- Hacking.InitHack(hackable);
- }
- }
-}
-#endif \ No newline at end of file