public void Count(string what) { switch (what.ToLower()) { case "regs": Engine.CountReagents(); break; case "ammo": Engine.CountAmmo(); break; } }