diff options
author | root <root@linuxworks.belug.de> | 2017-10-19 14:21:27 +0200 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2017-10-19 14:21:27 +0200 |
commit | 277154cf2daf870044c6f5bac90f338552fb75df (patch) | |
tree | 9cc6bb59a684df55155d69fc1b1ec2c8c181e22c /new_flow_logic/flowable_node_registry.lua | |
parent | 848741a294363431a2a6e9c32ddf693951951fec (diff) | |
parent | 9df0ec7edb55ba443acc68df9ed63fdd53c66bfa (diff) |
Merge branch 'master' of https://github.com/minetest-mods/pipeworks
Diffstat (limited to 'new_flow_logic/flowable_node_registry.lua')
-rw-r--r-- | new_flow_logic/flowable_node_registry.lua | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/new_flow_logic/flowable_node_registry.lua b/new_flow_logic/flowable_node_registry.lua deleted file mode 100644 index 2523803..0000000 --- a/new_flow_logic/flowable_node_registry.lua +++ /dev/null @@ -1,48 +0,0 @@ --- registry of flowable node behaviours in new flow logic --- written 2017 by thetaepsilon - --- the actual registration functions which edit these tables can be found in flowable_node_registry_install.lua --- this is because the ABM code needs to inspect these tables, --- but the registration code needs to reference said ABM code. --- so those functions were split out to resolve a circular dependency. - - - -pipeworks.flowables = {} -pipeworks.flowables.list = {} -pipeworks.flowables.list.all = {} --- pipeworks.flowables.list.nodenames = {} - --- simple flowables - balance pressure in any direction -pipeworks.flowables.list.simple = {} -pipeworks.flowables.list.simple_nodenames = {} - --- simple intakes - try to absorb any adjacent water nodes -pipeworks.flowables.inputs = {} -pipeworks.flowables.inputs.list = {} -pipeworks.flowables.inputs.nodenames = {} - --- outputs - takes pressure from pipes and update world to do something with it -pipeworks.flowables.outputs = {} -pipeworks.flowables.outputs.list = {} --- not currently any nodenames arraylist for this one as it's not currently needed. - --- nodes with registered node transitions --- nodes will be switched depending on pressure level -pipeworks.flowables.transitions = {} -pipeworks.flowables.transitions.list = {} -- master list -pipeworks.flowables.transitions.simple = {} -- nodes that change based purely on pressure -pipeworks.flowables.transitions.mesecons = {} -- table of mesecons rules to apply on transition - - - --- checks if a given node can flow in a given direction. --- used to implement directional devices such as pumps, --- which only visually connect in a certain direction. --- node is the usual name + param structure. --- direction is an x/y/z vector of the flow direction; --- this function answers the question "can this node flow in this direction?" -pipeworks.flowables.flow_check = function(node, direction) - minetest.log("warning", "pipeworks.flowables.flow_check() stub!") - return true -end |