2016-05-29 20:27:30 +02:00
|
|
|
--advtrains
|
|
|
|
|
|
|
|
advtrains={}
|
|
|
|
|
|
|
|
advtrains.modpath = minetest.get_modpath("advtrains")
|
|
|
|
|
2016-11-10 20:24:47 +01:00
|
|
|
--print=function(text)
|
|
|
|
-- minetest.log("action", tostring(text) or "<non-string>")
|
|
|
|
--end
|
|
|
|
print = function(t) minetest.log("action", t) minetest.chat_send_all(t) end
|
2016-05-29 20:27:30 +02:00
|
|
|
|
|
|
|
dofile(advtrains.modpath.."/helpers.lua");
|
|
|
|
dofile(advtrains.modpath.."/debugitems.lua");
|
|
|
|
|
2016-11-21 19:56:10 +01:00
|
|
|
advtrains.meseconrules =
|
|
|
|
{{x=0, y=0, z=-1},
|
|
|
|
{x=1, y=0, z=0},
|
|
|
|
{x=-1, y=0, z=0},
|
|
|
|
{x=0, y=0, z=1},
|
|
|
|
{x=1, y=1, z=0},
|
|
|
|
{x=1, y=-1, z=0},
|
|
|
|
{x=-1, y=1, z=0},
|
|
|
|
{x=-1, y=-1, z=0},
|
|
|
|
{x=0, y=1, z=1},
|
|
|
|
{x=0, y=-1, z=1},
|
|
|
|
{x=0, y=1, z=-1},
|
|
|
|
{x=0, y=-1, z=-1},
|
|
|
|
{x=0, y=-2, z=0}}
|
2016-11-24 20:25:07 +01:00
|
|
|
dofile(advtrains.modpath.."/trainlogic.lua")
|
2016-05-29 20:27:30 +02:00
|
|
|
dofile(advtrains.modpath.."/trainhud.lua")
|
|
|
|
dofile(advtrains.modpath.."/trackplacer.lua")
|
|
|
|
dofile(advtrains.modpath.."/tracks.lua")
|
2016-11-10 22:58:27 +01:00
|
|
|
dofile(advtrains.modpath.."/atc.lua")
|
2016-05-29 20:27:30 +02:00
|
|
|
dofile(advtrains.modpath.."/wagons.lua")
|
2016-05-29 22:02:51 +02:00
|
|
|
|
2016-11-24 20:25:07 +01:00
|
|
|
dofile(advtrains.modpath.."/pseudoload.lua")
|
|
|
|
dofile(advtrains.modpath.."/couple.lua")
|
|
|
|
dofile(advtrains.modpath.."/damage.lua")
|
2016-08-28 20:59:54 +02:00
|
|
|
|
2016-11-24 20:25:07 +01:00
|
|
|
dofile(advtrains.modpath.."/signals.lua")
|
|
|
|
dofile(advtrains.modpath.."/misc_nodes.lua")
|
|
|
|
dofile(advtrains.modpath.."/crafting.lua")
|