
citygen = {
	cityblock_size = 20
}

-- sanity checks
if minetest.get_mapgen_setting("mg_name") ~= "singlenode" then
    error("this mod only works with the 'singlenode' mapgen")
end

local MP = minetest.get_modpath("citygen")

dofile(MP.."/api.lua")
dofile(MP.."/hacks.lua")
dofile(MP.."/util.lua")
dofile(MP.."/perlin_manager.lua")
dofile(MP.."/generate_building.lua")
dofile(MP.."/plot_buildings.lua")
dofile(MP.."/plot_streets.lua")
dofile(MP.."/cityblock.lua")
dofile(MP.."/mapgen.lua")
dofile(MP.."/chatcommands.lua")
dofile(MP.."/debug.lua")

dofile(MP.."/renderers/street.lua")
dofile(MP.."/renderers/sewer.lua")
dofile(MP.."/renderers/platform.lua")
dofile(MP.."/renderers/buildings.lua")

dofile(MP.."/util/streetname.lua")

if minetest.get_modpath("default") and minetest.get_modpath("moreblocks") then
    -- enable default (demo?) buildings
    dofile(MP.."/default_buildings.lua")
end