Esempio n. 1
0
        public FurnaceUI(Ref <Item> input, Ref <Item> output, EnergyCore energyCore, string furnaceName)
        {
            this._input       = new InputOutputSlot(input, Main.inventoryBack10Texture);
            this._output      = new InputOutputSlot(output, Main.inventoryBack10Texture);
            this._furnaceName = furnaceName;

            _energyBar = new UIEnergyBar(energyCore);
        }
Esempio n. 2
0
        public FurnaceUI(Ref <Item> input, Ref <Item> output, Ref <Item> fuel, FuelCore energyCore, string furnaceName)
        {
            this._input  = new InputOutputSlot(input, Main.inventoryBack10Texture);
            this._output = new InputOutputSlot(output, Main.inventoryBack10Texture);

            if (energyCore != null)
            {
                _energyBar = new UIEnergyBar(energyCore);
            }

            this._fuel        = new FuelSlot(fuel, Main.inventoryBack10Texture, energyCore);
            this._furnaceName = furnaceName;
        }