diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 16:17:35 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 16:17:35 +0100 |
commit | f3cd1b61d771824ed9f42b32caa95ae08538bb64 (patch) | |
tree | 82e88320eabd84a4fb3af4455cc53b196a5eb08c /new_flow_logic | |
parent | d9b616c5f05b1c512988fd5eef5f91aba5bf12cf (diff) | |
download | pipeworks-f3cd1b61d771824ed9f42b32caa95ae08538bb64.tar pipeworks-f3cd1b61d771824ed9f42b32caa95ae08538bb64.tar.gz pipeworks-f3cd1b61d771824ed9f42b32caa95ae08538bb64.tar.bz2 pipeworks-f3cd1b61d771824ed9f42b32caa95ae08538bb64.tar.xz pipeworks-f3cd1b61d771824ed9f42b32caa95ae08538bb64.zip |
new flow logic: flowable_node_registry_install.lua: add registration tracing
Diffstat (limited to 'new_flow_logic')
-rw-r--r-- | new_flow_logic/flowable_node_registry_install.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/new_flow_logic/flowable_node_registry_install.lua b/new_flow_logic/flowable_node_registry_install.lua index 06d69fd..f83f8ad 100644 --- a/new_flow_logic/flowable_node_registry_install.lua +++ b/new_flow_logic/flowable_node_registry_install.lua @@ -22,6 +22,12 @@ local insertbase = function(nodename) -- table.insert(pipeworks.flowables.list.nodenames, nodename) end +local regwarning = function(kind, nodename) + local tail = "" + if pipeworks.enable_new_flow_logic then tail = " but new_flow_logic not enabled" end + pipeworks.logger("[pipeworks] "..kind.." flow logic registry requested for "..nodename..tail) +end + -- Register a node as a simple flowable. -- Simple flowable nodes have no considerations for direction of flow; -- A cluster of adjacent simple flowables will happily average out in any direction. @@ -32,6 +38,7 @@ register.simple = function(nodename) if pipeworks.enable_new_flow_logic then abmregister.balance(nodename) end + regwarning("simple", nodename) end local checkbase = function(nodename) @@ -50,6 +57,7 @@ register.intake_simple = function(nodename, maxpressure) if pipeworks.enable_new_flow_logic then abmregister.input(nodename, maxpressure, pipeworks.flowlogic.check_for_liquids_v2) end + regwarning("simple intake", nodename) end -- Register a node as an output. @@ -61,6 +69,7 @@ register.output = function(nodename, threshold, outputfn) if pipeworks.enable_new_flow_logic then abmregister.output(nodename, threshold, outputfn) end + regwarning("output node", nodename) end -- TODOs here: |