forked from mtcontrib/pipeworks
todo: update item for pressure logic directionality code
This commit is contained in:
parent
0a97abcaf6
commit
38a893ec82
@ -1,7 +1,9 @@
|
|||||||
-- Directionality code (in progress)
|
-- Directionality code (in progress)
|
||||||
Currently, only "simple" flowable nodes exist, and they will always equalise pressure with all six neighbours.
|
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.
|
||||||
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.
|
Pumps have been converted to this as part of the testing.
|
||||||
This would enable devices such as the airtight panels, sensor tubes and valves to have correct flow behaviour.
|
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
|
-- (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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user