2024-10-15 16:28:59 +02:00
|
|
|
-- IndustrialTest
|
|
|
|
-- Copyright (C) 2024 mrkubax10
|
|
|
|
|
|
|
|
-- This program is free software: you can redistribute it and/or modify
|
|
|
|
-- it under the terms of the GNU General Public License as published by
|
|
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
|
|
|
-- (at your option) any later version.
|
|
|
|
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
|
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
industrialtest.ActivatedElectricMachine=table.copy(industrialtest.ElectricMachine)
|
|
|
|
|
|
|
|
function industrialtest.ActivatedElectricMachine.onTimer(self,pos,elapsed)
|
2024-10-25 12:40:27 +02:00
|
|
|
local result=self:powerExchange(pos)
|
|
|
|
local result2=industrialtest.ActivatedMachine.onTimer(self,pos,elapsed)
|
|
|
|
return result or result2
|
2024-10-15 16:28:59 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
industrialtest.ActivatedElectricMachine.register=industrialtest.ActivatedMachine.register
|
|
|
|
|
|
|
|
industrialtest.ActivatedElectricMachine.createDefinitionTable=industrialtest.ActivatedMachine.createDefinitionTable
|
|
|
|
|
2024-10-25 12:40:27 +02:00
|
|
|
industrialtest.ActivatedElectricMachine.createActiveDefinitionTable=industrialtest.ActivatedMachine.createActiveDefinitionTable
|
|
|
|
|
2024-10-15 16:28:59 +02:00
|
|
|
industrialtest.ActivatedElectricMachine.shouldActivate=industrialtest.ActivatedMachine.shouldActivate
|
|
|
|
|
|
|
|
industrialtest.ActivatedElectricMachine.shouldDeactivate=industrialtest.ActivatedMachine.shouldDeactivate
|
|
|
|
|
2024-10-24 16:30:20 +02:00
|
|
|
industrialtest.ActivatedElectricMachine.afterActivation=industrialtest.ActivatedMachine.afterActivation
|
2024-10-15 16:28:59 +02:00
|
|
|
|
2024-10-24 16:30:20 +02:00
|
|
|
industrialtest.ActivatedElectricMachine.afterDeactivation=industrialtest.ActivatedMachine.afterDeactivation
|
2024-10-15 16:28:59 +02:00
|
|
|
|
|
|
|
function industrialtest.ActivatedElectricMachine.activeOnTimer(self,pos,elapsed)
|
2024-10-25 12:40:27 +02:00
|
|
|
local result=self:powerExchange(pos)
|
|
|
|
local result2=industrialtest.ActivatedMachine.activeOnTimer(self,pos,elapsed)
|
|
|
|
return result or result2
|
2024-10-15 16:28:59 +02:00
|
|
|
end
|
|
|
|
|