Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ekwipunek
- {
- class Inventory
- {
- static string[] arrayItems = new string[6];
- public static void AddItem(string item)
- {
- }
- public static void DisplayItem()
- {
- foreach (string item in arrayItems)
- if (item == null)
- Console.Write("Tempy;");
- else
- Console.Write(item + ";");
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Wpisz komende /add /switch /displayall");
- string command = Console.ReadLine();
- switch (command)
- {
- case "/displayall":
- Inventory.DisplayItem();
- break;
- case "/add":
- break;
- case "/switch":
- break;
- }
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement