streets/init.lua

53 lines
1.4 KiB
Lua
Raw Normal View History

2016-01-26 15:56:01 +01: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 = {
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 = {}}
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")
streets.load_submod("streets_poles")
streets.load_submod("streets_rrxing")
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")
streets.load_submod("streets_roadwork")
2016-05-30 22:19:51 +02:00
streets.load_submod("streets_bollards")
if minetest.get_modpath("digilines") then
streets.load_submod("streets_trafficlight")
2016-05-25 22:26:07 -05:00
streets.load_submod("streets_laneuse")
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")