Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- string input = Console.ReadLine();
- string command = string.Empty;
- command = input.Split(' ')[0];
- switch (command)
- {
- case "/display":
- inventory.DisplayItems();
- Console.WriteLine();
- break;
- case "/add":
- string item = input.Split(' ')[1];
- //string item = Console.ReadLine();
- inventory.AddItem(item);
- break;
- case "/switch":
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment