summaryrefslogtreecommitdiff
path: root/todo
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-18 12:06:00 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-18 12:06:00 +0100
commit38a893ec829e834ab0f24c709abda13b38fba205 (patch)
treed57ebe3fb32bee2508a1f1e07c4e8257f236a0cb /todo
parent0a97abcaf64e4868cb9780172943d5b90b8da0a7 (diff)
downloadpipeworks-38a893ec829e834ab0f24c709abda13b38fba205.tar
pipeworks-38a893ec829e834ab0f24c709abda13b38fba205.tar.gz
pipeworks-38a893ec829e834ab0f24c709abda13b38fba205.tar.bz2
pipeworks-38a893ec829e834ab0f24c709abda13b38fba205.tar.xz
pipeworks-38a893ec829e834ab0f24c709abda13b38fba205.zip
todo: update item for pressure logic directionality code
Diffstat (limited to 'todo')
-rw-r--r--todo/new_flow_logic.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/todo/new_flow_logic.txt b/todo/new_flow_logic.txt
index 41f7498..41ce2f8 100644
--- a/todo/new_flow_logic.txt
+++ b/todo/new_flow_logic.txt
@@ -1,7 +1,9 @@
-- Directionality code (in progress)
-Currently, only "simple" flowable nodes exist, and they will always equalise pressure with all six neighbours.
-A more sophisticated behaviour for this would be flowable node registration with some kind of custom callback, such that water can only flow into or out of these nodes in certain directions.
-This would enable devices such as the airtight panels, sensor tubes and valves to have correct flow behaviour.
+The flowable node class for directional nodes now exists and is hooked up in the code for determining valid neighbours in the flowable node ABM routines.
+Pumps have been converted to this as part of the testing.
+However, currently only the "raw" registration for this is available, and the pump definition registers it's own callback routines.
+Helpers need to be added to flowable_node_registry_install.lua to abstract away the expression of which nodes can flow which ways - valves, flow sensors, spigots and entry panels, for instance, all currently rotate the same way using an upwards facedir, so a helper for these nodes would prevent code duplication.
+
-- (may not be possible) stop removing water nodes that were not placed by outputs when off
In non-finite mode, spigots and fountainheads will vanish water sources in their output positions, even if those output nodes did not place them there.