Document industrialtest.api.addPowerStorage

This commit is contained in:
mrkubax10 2023-03-15 18:22:13 +00:00
parent 530276ad47
commit cc2e08cc7c

View File

@ -18,6 +18,12 @@ local S=minetest.get_translator("industrialtest")
industrialtest.api={} industrialtest.api={}
-- \brief Adds power storage to metadata
-- \param capacity How much EU item/node can store
-- \param flow How much EU can flow in or out item/node per industrialtest.updateDelay
-- \param ioConfig Input/Output configuration in following side order: -X, +X, -Y, +Y, -Z, +Z
-- a - bidirectional, i - input, o - output
-- \returns nil
industrialtest.api.addPowerStorage=function(meta,capacity,flow,ioConfig) industrialtest.api.addPowerStorage=function(meta,capacity,flow,ioConfig)
meta:set_int("industrialtest.powerCapacity",capacity) meta:set_int("industrialtest.powerCapacity",capacity)
meta:set_int("industrialtest.powerFlow",flow) meta:set_int("industrialtest.powerFlow",flow)