Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 15 files). Show all
Unified · Split
| @@ -66,6 +66,7 @@ EntityScriptServer::EntityScriptServer(ReceivedMessage& message) : ThreadedAssig · 65 unmodified lines | |||
| 66 | 66 | ||
| 67 | DependencyManager::set<ResourceCacheSharedItems>(); | 67 | DependencyManager::set<ResourceCacheSharedItems>(); |
| 68 | DependencyManager::set<SoundCache>(); | 68 | DependencyManager::set<SoundCache>(); |
| 69 | DependencyManager::set<SoundCacheScriptingInterface>(); | ||
| 69 | DependencyManager::set<AudioInjectorManager>(); | 70 | DependencyManager::set<AudioInjectorManager>(); |
| 70 | 71 | ||
| 71 | DependencyManager::set<ScriptCache>(); | 72 | DependencyManager::set<ScriptCache>(); |
| @@ -438,7 +439,7 @@ void EntityScriptServer::resetEntitiesScriptEngine() { · 366 unmodified lines | |||
| 438 | auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor); | 439 | auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor); |
| 439 | newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue); | 440 | newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue); |
| 440 | 441 | ||
| 441 | newEngine->registerGlobalObject("SoundCache", new SoundCacheScriptingInterface(DependencyManager::get<SoundCache>().data())); | 442 | newEngine->registerGlobalObject("SoundCache", DependencyManager::get<SoundCacheScriptingInterface>().data()); |
| 442 | 443 | ||
| 443 | // connect this script engines printedMessage signal to the global ScriptEngines these various messages | 444 | // connect this script engines printedMessage signal to the global ScriptEngines these various messages |
| 444 | auto scriptEngines = DependencyManager::get<ScriptEngines>().data(); | 445 | auto scriptEngines = DependencyManager::get<ScriptEngines>().data(); |