summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Commands/List.cs
blob: 1213f8584bfdf0cac2479d5db4440577dfd3713b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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();
        }
    }
}