History

Revise scriptable resource caches' interfaces

David Rowe committed 8 years ago

Commit baf88ab1 parent 16e06de15 files · +54 −54Browse files

Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 15 files). Show all

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+2−1
@@ -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 messages444 // 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();