Example #1
0
 public RecipeItemSet GetRecipeItemSet()
 {
     ReadOrder();
     RecipeItemSet set = new RecipeItemSet();
     for (int i = 0; i < 9; i++) {
         set.item[i].id = id[i];
         set.item[i].count = count[i];
         set.item[i].order = order[i];
         //if (set.item[i].id != 0)
         //    set.item[i].name = windower.Inventory.GetItemNameById(id[i]);
     }
     if (set.item[0].id != 0)
         set.item[0].count = 1;
     return set;
 }
Example #2
0
 public object Clone()
 {
     RecipeItemSet itemSet = new RecipeItemSet();
     itemSet.category = this.category;
     itemSet.name = this.name;
     itemSet.item = (RecipeItem[]) this.item.Clone();
     return itemSet;
 }