コード例 #1
0
 /// <summary>
 /// Adds an ingedient to the PotionBuilder.
 /// </summary>
 /// <param name="ingredient"></param>
 public void addIngredient(Ingredient ingredient)
 {
     potionIngredient = ingredient;
 }
コード例 #2
0
ファイル: BenchCommand.cs プロジェクト: kuffert/Brewers-Bench
 /// <summary>
 /// Standard Constructor for the Stock Ingredient Command.
 /// </summary>
 /// <param name="system"></param>
 /// <param name="i"></param>
 public StockIngredientCommand(BrewersBenchSystem system, Ingredient i) : base(system)
 {
     ingredient = i;
 }
コード例 #3
0
 /// <summary>
 /// Stocks a new Ingredient.
 /// </summary>
 /// <param name="i"></param>
 public void stockIngredient(Ingredient i)
 {
     dbQuery.InsertNewIngredient(i);
     stockedIngredients = dbQuery.queryIngredients();
 }