From afcec82ae336cba3e874f6afd1b4e46e04245f7d Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Sat, 30 Sep 2017 23:02:11 +0100 Subject: register_flow_logic.lua: expose ABM registration functions --- register_flow_logic.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/register_flow_logic.lua b/register_flow_logic.lua index 60fc820..f3e8fbd 100644 --- a/register_flow_logic.lua +++ b/register_flow_logic.lua @@ -3,6 +3,11 @@ +local register = {} +pipeworks.flowlogic.abmregister = register + + + -- note that checking for feature toggles (because otherwise certain pipes aren't define) -- is now done by flowable_nodes_add_pipes.lua --[[ @@ -28,6 +33,7 @@ local register_abm_balance = function(nodename) end }) end +register.balance = register_abm_balance for nodename, _ in pairs(pipeworks.flowables.list.simple) do register_abm_balance(nodename) end @@ -42,6 +48,7 @@ local register_abm_input = function(nodename, properties) end }) end +register.input = register_abm_input if pipeworks.enable_pipe_devices then -- absorb water into pumps if it'll fit -- cgit v1.2.3