History

Many improvements:

* Get crash settings in assignment clients * Allow custom crash reporting URL and token * Fix setting system -- the client's one doesn't belong in the server * Lots more documentation Commit just before moving things around.

Dale Glass committed 3 years ago

Commit 25755f91 parent f218e5423 files · +361 −63Browse files

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

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+7−4
@@ -149,11 +149,14 @@ void EntityScriptServer::handleEntityScriptGetStatusPacket(QSharedPointer<Receiv · 148 unmodified lines
149149
150150 void EntityScriptServer::handleSettings() {
151151
152+
152153 auto nodeList = DependencyManager::get<NodeList>();
153154
154155 auto& domainHandler = nodeList->getDomainHandler();
155156 const QJsonObject& settingsObject = domainHandler.getSettingsObject();
156157
158+ commonParseSettingsObject(settingsObject);
159+
157160 static const QString ENTITY_SCRIPT_SERVER_SETTINGS_KEY = "entity_script_server";
158161
159162 if (!settingsObject.contains(ENTITY_SCRIPT_SERVER_SETTINGS_KEY)) {
@@ -292,7 +295,7 @@ void EntityScriptServer::run() { · 132 unmodified lines
292295 entityScriptingInterface->init();
293296
294297 _entityViewer.init();
295−
298+
296299 // setup the JSON filter that asks for entities with a non-default serverScripts property
297300 QJsonObject queryJSONParameters;
298301 queryJSONParameters[EntityJSONQueryProperties::SERVER_SCRIPTS_PROPERTY] = EntityQueryFilterSymbol::NonDefault;
@@ -303,7 +306,7 @@ void EntityScriptServer::run() { · 4 unmodified lines
303306 queryFlags[EntityJSONQueryProperties::INCLUDE_DESCENDANTS_PROPERTY] = true;
304307
305308 queryJSONParameters[EntityJSONQueryProperties::FLAGS_PROPERTY] = queryFlags;
306−
309+
307310 // setup the JSON parameters so that OctreeQuery does not use a frustum and uses our JSON filter
308311 _entityViewer.getOctreeQuery().setJSONParameters(queryJSONParameters);
309312
@@ -380,7 +383,7 @@ void EntityScriptServer::nodeKilled(SharedNodePointer killedNode) { · 70 unmodified lines
380383 if (!hasAnotherEntityServer) {
381384 clear();
382385 }
383−
386+
384387 break;
385388 }
386389 case NodeType::Agent: {
@@ -584,7 +587,7 @@ void EntityScriptServer::sendStatsPacket() { · 197 unmodified lines
584587 }
585588 scriptEngineStats["number_running_scripts"] = numberRunningScripts;
586589 statsObject["script_engine_stats"] = scriptEngineStats;
587−
590+
588591
589592 auto nodeList = DependencyManager::get<NodeList>();
590593 QJsonObject nodesObject;