manage all handler inits in their own init file

This commit is contained in:
Tim 2015-08-19 22:37:45 +02:00
parent 908b408248
commit fc8621da41
2 changed files with 25 additions and 14 deletions

View File

@ -0,0 +1,22 @@
local handlerpath = homedecor.modpath .. "/handlers/"
-- nodebox arithmetics and helpers
-- (please keep non-generic nodeboxes with their node definition)
dofile(handlerpath.."nodeboxes.lua")
-- expand and unexpand decor
dofile(handlerpath.."expansion.lua")
-- register nodes that cook stuff
dofile(handlerpath.."furnaces.lua")
-- inventory related functionality, like initialization, ownership and spawning locked versions
dofile(handlerpath.."inventory.lua")
-- glue it all together into a registration function
dofile(handlerpath.."registration.lua")
-- some nodes have particle spawners
dofile(handlerpath.."water_particles.lua")
dofile(handlerpath.."sit.lua")

View File

@ -80,20 +80,9 @@ homedecor.white_wood = "(homedecor_generic_wood_plain.png^[colorize:#e0f0ff:200)
homedecor.dark_wood = "(homedecor_generic_wood_plain.png^[colorize:#140900:200)^".. homedecor.dark_wood = "(homedecor_generic_wood_plain.png^[colorize:#140900:200)^"..
"(homedecor_generic_wood_boards_overlay.png^[colorize:#21110180:180)" "(homedecor_generic_wood_boards_overlay.png^[colorize:#21110180:180)"
-- nodebox arithmetics and helpers
-- (please keep non-generic nodeboxes with their node definition) -- load different handler subsystems
dofile(modpath.."/handlers/nodeboxes.lua") dofile(modpath.."/handlers/init.lua")
-- expand and unexpand decor
dofile(modpath.."/handlers/expansion.lua")
-- register nodes that cook stuff
dofile(modpath.."/handlers/furnaces.lua")
-- register individual handlers used by the registration function
dofile(modpath.."/handlers/inventory.lua")
-- glue it all together into a registration function
dofile(modpath.."/handlers/registration.lua")
-- some nodes have particle spawners
dofile(modpath.."/handlers/water_particles.lua")
dofile(modpath.."/handlers/sit.lua")
-- load various other components -- load various other components
dofile(modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes dofile(modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes