WIP: Add groups to scriptScheduler

* NOTE: This breaks the backwards scripts
This commit is contained in:
Malin E
2021-10-08 19:17:06 +02:00
parent 48597ec222
commit e2c592e049
5 changed files with 129 additions and 80 deletions
+3 -4
View File
@@ -1129,13 +1129,12 @@ void OpenSpaceEngine::preSynchronization() {
global::timeManager->preSynchronization(dt);
using Iter = std::vector<std::string>::const_iterator;
std::pair<Iter, Iter> scheduledScripts = global::scriptScheduler->progressTo(
std::vector<std::string> scheduledScripts = global::scriptScheduler->progressTo(
global::timeManager->time().j2000Seconds()
);
for (Iter it = scheduledScripts.first; it != scheduledScripts.second; ++it) {
for (const std::string& script : scheduledScripts) {
global::scriptEngine->queueScript(
*it,
script,
scripting::ScriptEngine::RemoteScripting::Yes
);
}