forked from mrkubax10/industrialtest
Document industrialtest.api.addPowerStorage
This commit is contained in:
parent
530276ad47
commit
cc2e08cc7c
6
api.lua
6
api.lua
@ -18,6 +18,12 @@ local S=minetest.get_translator("industrialtest")
|
||||
|
||||
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)
|
||||
meta:set_int("industrialtest.powerCapacity",capacity)
|
||||
meta:set_int("industrialtest.powerFlow",flow)
|
||||
|
Loading…
Reference in New Issue
Block a user