public void AddRecipe(int score) { Recipes.Add(score); TotalRecipes++; var elf = new Elf(score); elf.CurrIndex = Recipes.Count - 1; ElfDict[elf] = score; AllElves.Add(elf); }
public void AddRecipe(Elf elf, int score) { Recipes.Add(score); ElfDict[elf] = score; AllElves.Add(elf); }