public CraftObj(string Name, ItemObj[] Inputs, ItemObj Output, CraftListType Type) { this.Name = Name; this.Inputs = Inputs; this.Output = Output; this.ListType = Type; }
public void SetType(CraftListType CraftType) { this.CraftType = CraftType; UI.Children.Clear(); switch (this.CraftType) { case CraftListType.CraftingTable: dynamic data = new CraftingTableUI(); UI.Children.Add(data); nowPanle = data; break; default: break; } }