aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/models
diff options
context:
space:
mode:
authorBlockhead <jbis1337@hotmail.com>2020-07-07 18:19:56 +1000
committerGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2020-07-10 22:14:39 +0200
commitad49854fed1ccd426db5ab43d6734856a6b0bc74 (patch)
tree406e9d4cf4d1ac1c06b7ec431c4d70a0e1d70ec6 /advtrains_signals_ks/models
parent74bf177cc850164a0a6c13a634e7da6410f9f73a (diff)
downloadadvtrains-ad49854fed1ccd426db5ab43d6734856a6b0bc74.tar.gz
advtrains-ad49854fed1ccd426db5ab43d6734856a6b0bc74.tar.bz2
advtrains-ad49854fed1ccd426db5ab43d6734856a6b0bc74.zip
Make using the default tracks optional, even in submods
If advtrains_train_track is disabled, don't register any tracks that use its model like the LuaATC automation rail, point speed restriction rail, station/stop rail. For LuaATC, the definition for firing an event when a train runs over the rail needs to be moved into the common defs so that other mods like linetrack can use that as an interface.
Diffstat (limited to 'advtrains_signals_ks/models')
0 files changed, 0 insertions, 0 deletions
clude "client/client.h" #include "cpp_api/s_internal.h" #include "lua_api/l_client.h" #include "lua_api/l_env.h" #include "lua_api/l_item.h" #include "lua_api/l_minimap.h" #include "lua_api/l_modchannels.h" #include "lua_api/l_particles_local.h" #include "lua_api/l_storage.h" #include "lua_api/l_sound.h" #include "lua_api/l_util.h" #include "lua_api/l_item.h" #include "lua_api/l_nodemeta.h" #include "lua_api/l_localplayer.h" #include "lua_api/l_camera.h" ClientScripting::ClientScripting(Client *client): ScriptApiBase(ScriptingType::Client) { setGameDef(client); SCRIPTAPI_PRECHECKHEADER // Security is mandatory client side initializeSecurityClient(); lua_getglobal(L, "core"); int top = lua_gettop(L); lua_newtable(L); lua_setfield(L, -2, "ui"); InitializeModApi(L, top); lua_pop(L, 1); if (client->getMinimap()) LuaMinimap::create(L, client->getMinimap()); // Push builtin initialization type lua_pushstring(L, "client");