mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
added a vector containing all executed scripts for this session and method to get it.
added a call to sending of scripts via parallel connection as soon as they are executed.
This commit is contained in:
@@ -78,6 +78,8 @@ public:
|
||||
void preSynchronization();
|
||||
|
||||
void queueScript(const std::string &script);
|
||||
|
||||
std::vector<std::string> executedScripts();
|
||||
|
||||
std::vector<std::string> allLuaFunctions() const;
|
||||
|
||||
@@ -98,6 +100,10 @@ private:
|
||||
std::vector<std::string> _queuedScripts;
|
||||
std::vector<std::string> _receivedScripts;
|
||||
std::string _currentSyncedScript;
|
||||
|
||||
//parallel variables @TODO make a more permanent solution to this - JK
|
||||
std::vector<std::string> _executedScripts;
|
||||
std::mutex _executedScriptsMutex;
|
||||
};
|
||||
|
||||
} // namespace scripting
|
||||
|
||||
Reference in New Issue
Block a user