Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 13 files). Show all
Unified · Split
| @@ -2393,6 +2393,11 @@ void ScriptEngine::unloadEntityScript(const EntityItemID& entityID, bool shouldR · 2392 unmodified lines | |||
| 2393 | } | 2393 | } |
| 2394 | } | 2394 | } |
| 2395 | 2395 | ||
| 2396 | QList<EntityItemID> ScriptEngine::getListOfEntityScriptIDs() { | ||
| 2397 | QReadLocker locker{ &_entityScriptsLock }; | ||
| 2398 | return _entityScripts.keys(); | ||
| 2399 | } | ||
| 2400 | |||
| 2396 | void ScriptEngine::unloadAllEntityScripts() { | 2401 | void ScriptEngine::unloadAllEntityScripts() { |
| 2397 | if (QThread::currentThread() != thread()) { | 2402 | if (QThread::currentThread() != thread()) { |
| 2398 | #ifdef THREAD_DEBUGGING | 2403 | #ifdef THREAD_DEBUGGING |