streets/init.lua

40 lines
913 B
Lua
Raw Normal View History

2016-01-26 15:56:01 +01:00
--[[
## StreetsMod 2.0 ##
Submod: streetsmod
Optional: false
Category: Init
]]
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")
}
-- The API collects some data here
streets.api = {
register_road_surfaces = {},
register_road_markings = {}
}
-- 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-09 09:41:55 +02:00
streets.load_submod("streets_roadworks")
2016-05-12 12:01:05 +02:00
streets.load_submod("streets_installations")
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")