private void AddPet(PetTab inGameShopPetTab) { inGameShopPetTab.AddShopItem(new Pet("Rabbit", 0.75, 10, 2, 1)); inGameShopPetTab.AddShopItem(new Pet("White Fox", 1.25, 15, 3, 1)); inGameShopPetTab.AddShopItem(new Pet("Moon Rabbit", 2, 15, 3, 2)); inGameShopPetTab.AddShopItem(new Pet("Little Vampire", 4.75, 10, 5, 2)); }
public void PrintPetTab(PetTab collection) { AddPet(collection); foreach (var pet in collection) { Console.WriteLine(pet); } }