summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-09-30 23:02:11 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-09-30 23:02:11 +0100
commitafcec82ae336cba3e874f6afd1b4e46e04245f7d (patch)
tree247cf41d86229b8329bf64a075ef8015a8644fbf
parentaaef5eb22b439c3e410942c39726e58c0c041c40 (diff)
downloadpipeworks-afcec82ae336cba3e874f6afd1b4e46e04245f7d.tar
pipeworks-afcec82ae336cba3e874f6afd1b4e46e04245f7d.tar.gz
pipeworks-afcec82ae336cba3e874f6afd1b4e46e04245f7d.tar.bz2
pipeworks-afcec82ae336cba3e874f6afd1b4e46e04245f7d.tar.xz
pipeworks-afcec82ae336cba3e874f6afd1b4e46e04245f7d.zip
register_flow_logic.lua: expose ABM registration functions
-rw-r--r--register_flow_logic.lua7
1 files changed, 7 insertions, 0 deletions
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