aboutsummaryrefslogtreecommitdiff
path: root/doc
ModeNameSize
-rw-r--r--Doxyfile.in1531logplain
-rw-r--r--README.android4350logplain
-rw-r--r--client_lua_api.txt56569logplain
-rw-r--r--fst_api.txt5299logplain
-rw-r--r--lgpl-2.1.txt26530logplain
-rw-r--r--lua_api.txt293050logplain
-rw-r--r--main_page.dox247logplain
-rw-r--r--menu_lua_api.txt8674logplain
-rw-r--r--minetest.63001logplain
-- advtrains_luaautomation/init.lua -- Lua automation features for advtrains -- Uses global table 'atlatc' (AdvTrains_LuaATC) -- Boilerplate to support localized strings if intllib mod is installed. if intllib then atltrans = intllib.Getter() else atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end end --Privilege --Only trusted players should be enabled to build stuff which can break the server. atlatc = { envs = {}} minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) --assertt helper. error if a variable is not of a type function assertt(var, typ) if type(var)~=typ then error("Assertion failed, variable has to be of type "..typ) end end local mp=minetest.get_modpath("advtrains_luaautomation"