Exemple #1
0
    public CraftingRecipe(int id, string recipe_name, List <Item_Proxy> ingrediant, Item_Proxy output, string description, string recipeIconName)
    {
        //multi in single out
        this.id             = id;
        this.recipe_name    = recipe_name;
        this.description    = description;
        this.recipeIconName = recipeIconName;
        for (int i = 0; i < ingrediant.Count; ++i)
        {
            this.ingrediant.Add(new Item_Proxy(ingrediant[i]));
        }
        //this.ingrediant = ingrediant;
        this.output.Add(output);

        LoadRecipeIcon();
    }
Exemple #2
0
 public CraftingRecipe MakeCraftingRecipe(int id, string recipieName, List <Item_Proxy> itemList, Item_Proxy output, string description, string recipeIconName)
 {
     return(new CraftingRecipe(id, recipieName, itemList, output, description, recipeIconName));
 }
Exemple #3
0
 public Item_Proxy(Item_Proxy another)
 {
     this.amount   = another.amount;
     this.itemid   = another.itemid;
     this.itemname = another.itemname;
 }