path: root/todo
diff options
authorthetaepsilon-gamedev <>2017-10-07 13:49:33 +0100
committerthetaepsilon-gamedev <>2017-10-07 13:49:33 +0100
commitd175f0b94f8164552dc141778f6d832b5faf73a0 (patch)
tree4e5911a1a76c0209d69c575231aebcf80cb9e748 /todo
parent157f117c62fafc13994a96bfa5677c40e30ce1b3 (diff)
todo: new flow logic: add item for node variant switching
Diffstat (limited to 'todo')
1 files changed, 7 insertions, 0 deletions
diff --git a/todo/new_flow_logic.txt b/todo/new_flow_logic.txt
index ab7eebd..5daa80d 100644
--- a/todo/new_flow_logic.txt
+++ b/todo/new_flow_logic.txt
@@ -9,3 +9,10 @@ This could potentially mean that a below-pressure output node such as a spigot c
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.
+-- Automated switching between node variants based on pressure thresholds
+When the ABM ordering is complete, an additional callback which would be useful is a "node changer" callback, to switch between variations of a pipe depending on pressure level.
+For regular pipes, this is mostly aesthetic, as the empty/loaded variants of the pipes have different texures.
+However, the flow sensor is currently a broken device under the new flow logic, as there is nothing to switch this device between the "on" and "off" state - in order to produce a mesecons output, separate nodes are required due to mesecon's API being limited to only on/off for a given node, with no facility for a callback function which could e.g. inspect pressure metadata.
+To make this work, a new registry table would be needed to check if a flowable node has this property.
+In terms of ordering, this callback should be run after outputs have been processed.