2016-01-26 15:56:01 +01:00
|
|
|
--[[
|
2016-05-30 22:09:31 +02:00
|
|
|
## StreetsMod 2.0 ##
|
|
|
|
Submod: streetsmod
|
|
|
|
Optional: false
|
|
|
|
Category: Init
|
2016-01-26 15:56:01 +01:00
|
|
|
]]
|
|
|
|
|
|
|
|
print("[Mod][StreetsMod] Loading...")
|
|
|
|
-- Register a global streets namespace to operate in
|
|
|
|
streets = {}
|
|
|
|
|
|
|
|
-- Config stuff goes here
|
|
|
|
streets.conf = {
|
2016-05-30 22:09:31 +02:00
|
|
|
version = "2.0",
|
|
|
|
licenseCode = "",
|
|
|
|
licenseMedia = "CC-BY-SA 3.0",
|
|
|
|
modpath = minetest.get_modpath("streets")
|
2016-01-26 15:56:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
-- The API collects some data here
|
2016-05-25 14:47:00 -05:00
|
|
|
streets.surfaces = {surfacetypes = {}}
|
|
|
|
streets.labels = {labeltypes = {}}
|
2016-05-27 18:21:42 -05:00
|
|
|
streets.signs = {signtypes = {}}
|
2016-01-26 15:56:01 +01:00
|
|
|
|
|
|
|
-- Load the API file
|
|
|
|
dofile(streets.conf.modpath .. "/api.lua")
|
|
|
|
|
2016-03-03 12:10:49 +01:00
|
|
|
-- Load global definitions
|
|
|
|
dofile(streets.conf.modpath .. "/global.lua")
|
|
|
|
|
2016-01-26 15:56:01 +01:00
|
|
|
-- Load mod files
|
|
|
|
streets.load_submod("streets_roadsurface")
|
|
|
|
streets.load_submod("streets_roadmarkings")
|
2016-05-20 08:52:25 +02:00
|
|
|
streets.load_submod("streets_asphaltworkshop")
|
2016-05-12 12:01:05 +02:00
|
|
|
streets.load_submod("streets_installations")
|
2016-05-12 23:08:15 +02:00
|
|
|
streets.load_submod("streets_accessories")
|
2016-05-24 11:43:21 +02:00
|
|
|
streets.load_submod("streets_concrete")
|
2016-05-25 16:52:29 -05:00
|
|
|
streets.load_submod("streets_poles")
|
2016-05-25 22:05:52 -05:00
|
|
|
streets.load_submod("streets_rrxing")
|
2016-05-25 22:57:24 -05:00
|
|
|
streets.load_submod("streets_signs")
|
2016-05-27 19:03:16 -05:00
|
|
|
streets.load_submod("streets_signworkshop")
|
2016-05-25 23:16:24 -05:00
|
|
|
streets.load_submod("streets_steelsupport")
|
2016-05-25 16:52:29 -05:00
|
|
|
|
|
|
|
if minetest.get_modpath("digilines") then
|
|
|
|
streets.load_submod("streets_trafficlight")
|
2016-05-25 22:26:07 -05:00
|
|
|
streets.load_submod("streets_laneuse")
|
2016-05-25 16:52:29 -05:00
|
|
|
end
|
2016-01-26 15:56:01 +01:00
|
|
|
|
|
|
|
-- Let the API register everything and finish the setup
|
|
|
|
dofile(streets.conf.modpath .. "/api_register_all.lua")
|