summaryrefslogtreecommitdiff
path: root/new_flow_logic
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 15:47:21 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 15:47:21 +0100
commitd9b616c5f05b1c512988fd5eef5f91aba5bf12cf (patch)
tree2448021f4e79a89ebeae36501d1064bd93d10206 /new_flow_logic
parentf7b17197677ea3675eee6bc667370fe3e23ac099 (diff)
downloadpipeworks-d9b616c5f05b1c512988fd5eef5f91aba5bf12cf.tar
pipeworks-d9b616c5f05b1c512988fd5eef5f91aba5bf12cf.tar.gz
pipeworks-d9b616c5f05b1c512988fd5eef5f91aba5bf12cf.tar.bz2
pipeworks-d9b616c5f05b1c512988fd5eef5f91aba5bf12cf.tar.xz
pipeworks-d9b616c5f05b1c512988fd5eef5f91aba5bf12cf.zip
new flow logic: node registry: add initial stub for flow directionality check
Diffstat (limited to 'new_flow_logic')
-rw-r--r--new_flow_logic/flowable_node_registry.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/new_flow_logic/flowable_node_registry.lua b/new_flow_logic/flowable_node_registry.lua
index 8fb925c..b0634d0 100644
--- a/new_flow_logic/flowable_node_registry.lua
+++ b/new_flow_logic/flowable_node_registry.lua
@@ -26,3 +26,16 @@ pipeworks.flowables.inputs.nodenames = {}
pipeworks.flowables.outputs = {}
pipeworks.flowables.outputs.list = {}
-- not currently any nodenames arraylist for this one as it's not currently needed.
+
+
+
+-- 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