diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 12:28:22 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 12:28:22 +0100 |
commit | 15b41d14f3923ce3cea8418a792f83e7763d5b00 (patch) | |
tree | c7b480198885673e694bdec9da114dbd8f05a6a0 | |
parent | 463e7a206af8e2b98617b549e3bc6dc5eb181ffc (diff) | |
download | pipeworks-15b41d14f3923ce3cea8418a792f83e7763d5b00.tar pipeworks-15b41d14f3923ce3cea8418a792f83e7763d5b00.tar.gz pipeworks-15b41d14f3923ce3cea8418a792f83e7763d5b00.tar.bz2 pipeworks-15b41d14f3923ce3cea8418a792f83e7763d5b00.tar.xz pipeworks-15b41d14f3923ce3cea8418a792f83e7763d5b00.zip |
new flow logic: abm_register.lua: update doc comments for register_abm_input()
-rw-r--r-- | new_flow_logic/abm_register.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/new_flow_logic/abm_register.lua b/new_flow_logic/abm_register.lua index 57c8a47..793ea83 100644 --- a/new_flow_logic/abm_register.lua +++ b/new_flow_logic/abm_register.lua @@ -22,8 +22,9 @@ local register_abm_balance = function(nodename) end register.balance = register_abm_balance --- register a node for the pump ABM. --- maxpressure is the maximum pressure that this pump can drive. +-- register a node for the input ABM. +-- intakefn is run on the node to determine how much water can be taken (and update it's environment accordingly). +-- maxpressure is the maximum pressure that this input can drive, beyond which pressure will not be raised. local register_abm_input = function(nodename, maxpressure, intakefn) minetest.register_abm({ nodenames = { nodename }, |