summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Commands/List.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
commit2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (patch)
treec3b34ccb2737e347a73768536895cbbaab13cc01 /dsa/DSALib/Commands/List.cs
parentec991104f56e90d7bb2878da2fe6ed4e585dfc46 (diff)
parentaf74efccf8d21e6151022b71f3cacd3fa83024ee (diff)
Merge branch 'rework-backend'
Diffstat (limited to 'dsa/DSALib/Commands/List.cs')
-rw-r--r--dsa/DSALib/Commands/List.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/dsa/DSALib/Commands/List.cs b/dsa/DSALib/Commands/List.cs
new file mode 100644
index 0000000..1213f85
--- /dev/null
+++ b/dsa/DSALib/Commands/List.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using DSALib.DSA_Game;
+
+namespace DSALib.Commands
+{
+ public class List
+ {
+ public static string ListAsync(string prop)
+ {
+ var res = new List<string>();
+
+ //int persist = 0;
+
+ switch (prop.ToLower())
+ {
+ case "man":
+ case "help":
+ return Help.Get_Specific_Help("List");
+ // break;
+ case "chars":
+ res.AddRange(Dsa.Chars.Select(x => x.Name));
+ break;
+ case "commands":
+ // res.AddRange(Help.Commands.Select(x => x.Name));
+ res.Add(Help.Get_Generic_Help());
+ break;
+
+ default:
+ res.Add($"Kommando {prop} nicht gefunden");
+ break;
+ }
+
+
+ return res.ToString();
+ }
+ }
+} \ No newline at end of file