Пример #1
0
 public CraftObj(string Name, ItemObj[] Inputs, ItemObj Output, CraftListType Type)
 {
     this.Name     = Name;
     this.Inputs   = Inputs;
     this.Output   = Output;
     this.ListType = Type;
 }
Пример #2
0
        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;
            }
        }