path: root/todo
diff options
authorthetaepsilon-gamedev <>2017-10-07 13:40:38 +0100
committerthetaepsilon-gamedev <>2017-10-07 13:40:38 +0100
commit157f117c62fafc13994a96bfa5677c40e30ce1b3 (patch)
treef23538a0aef3ca9cca3875dbd1c8fefe6bf84bc4 /todo
parent57362118dc3a8cfc8eb19997ab54eb307e8e2b44 (diff)
todo: new flow logic: add directionality code and ABM ordering items
Diffstat (limited to 'todo')
1 files changed, 11 insertions, 0 deletions
diff --git a/todo/new_flow_logic.txt b/todo/new_flow_logic.txt
index e69de29..ab7eebd 100644
--- a/todo/new_flow_logic.txt
+++ b/todo/new_flow_logic.txt
@@ -0,0 +1,11 @@
+-- Directionality code
+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.
+-- ABM ordering for event-driven "dropped below threshold" events
+For the non-finite liquid mode, cleanup handlers are invoked continuously while pressure is below a certain amount.
+This could potentially mean that a below-pressure output node such as a spigot could potentially keep deleting the water source node beneath it, even when one is placed there afterwards by a player say.
+Furthermore, attempting to fix this with a "previous pressure" metadata variable is of little use, as the output code is current run in a separate ABM - so the correct sequencing of events cannot be guaranteed.
+Therefore, the current code needs revising such that a node's output (or input) handlers are invoked from the main flow logic ABM, in order to ensure correct ordering.
+This would also allow the code to compare old and new pressure, and invoke the cleanup handler *only once* if the pressure has dropped from above to below the threshold, and not continuously.