\fn MapInstance::load_lua \brief This function should load the lua files from m_data_path
| 187 | /// \fn MapInstance::load_lua |
| 188 | /// \brief This function should load the lua files from m_data_path |
| 189 | void MapInstance::load_map_lua() |
| 190 | { |
| 191 | qInfo() << "Loading custom scripts"; |
| 192 | |
| 193 | QStringList script_paths = { |
| 194 | "scripts/global.lua", // global helper script |
| 195 | "scripts/Universal_Spawns.lua", // Spawndef and functionality for universal critters |
| 196 | "scripts/Encounter_Manager.lua", // used by all maps for encounter generation |
| 197 | "scripts/ES_OL_Functions.lua", // used by all maps for object library reference functionality |
| 198 | "scripts/Global_NPC_Extras.lua", // universal "faction table" for civilian NPCs, vehicles and later police drones |
| 199 | "scripts/Global_Persistents.lua", // universal file for referencing persistent NPCs/model lookup |
| 200 | "scripts/spawners.lua", // handles exposed Scenegraph data for all Lua-side managed spawning activity |
| 201 | |
| 202 | // per zone scripts |
| 203 | m_data_path + '/'+"ES_Library_Objects.lua", |
| 204 | m_data_path + '/'+"contacts.lua", |
| 205 | m_data_path + '/'+"locations.lua", |
| 206 | m_data_path + '/'+"plaques.lua", |
| 207 | m_data_path + '/'+"entities.lua", |
| 208 | m_data_path + '/'+"missions.lua" |
| 209 | }; |
| 210 | |
| 211 | for(const QString &path : script_paths) |
| 212 | loadAndRunLua(m_scripting_interface, path); |
| 213 | } |
| 214 | |
| 215 | QHash<QString, MapXferData> MapInstance::get_map_door_transfers() |
| 216 | { |
no test coverage detected