Adds Loaders. Rewritten add-loader with new loader snapping logic. Graphics from Arch666Angel and Kirazy.
required to use make_loader function with 1.8.0
local loader_redux = require("__LoaderRedux__.make_loader")
create loader item
loader_redux.make_loader_item(name, subgroup, order, tint)
-- @tparam String name
-- @tparam String subgroup
-- @tparam String order
-- @tparam Types.Color[] tint
create loader entity
loader_redux.make_loader_entity(name, belt, tint, next_upgrade)
-- @tparam String name
-- @tparam Prototype.TransportBelt[] belt
-- @tparam Types.Color[] tint
-- @tparam String|nil next_upgrade
register loader for snapping and train interaction in on_init and on_configuration_changed.
Do not call from on_load.
remote.call("loader-redux", "add_loader", name)
-- @tparam String name
unregister loader for snapping and train interaction in on_init and on_configuration_changed.
Do not call from on_load.
remote.call("loader-redux", "remove_loader", name)
-- @tparam String name