void Player(SqlRpgInventory rpgInventory) { ConsoleKeyInfo keyInfo; do { keyInfo = rpgInventory.PlayerSelectMenu(); if (int.TryParse(keyInfo.KeyChar.ToString(), out int num)) { rpgInventory.PlayersMenu(num); } } while (keyInfo.Key != ConsoleKey.Escape); }
static void Admin(SqlRpgInventory rpgInventory) { rpgInventory.AdminMenu(); }
static void Main(string[] args) { SqlRpgInventory rpgInventory = new SqlRpgInventory(); rpgInventory.MainMenu(); }