mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 13:08:49 -05:00
Add enable property to the ScriptScheduler
* NOTE: A rebuild of the globals library will be required to make this commit compile
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
#ifndef __OPENSPACE_CORE___SCRIPTSCHEDULER___H__
|
||||
#define __OPENSPACE_CORE___SCRIPTSCHEDULER___H__
|
||||
|
||||
#include <openspace/properties/propertyowner.h>
|
||||
|
||||
#include <openspace/properties/scalar/boolproperty.h>
|
||||
#include <openspace/navigation/keyframenavigator.h>
|
||||
#include <openspace/scripting/lualibrary.h>
|
||||
|
||||
@@ -44,8 +47,10 @@ struct LuaLibrary;
|
||||
* Maintains an ordered list of <code>ScheduledScript</code>s and provides a simple
|
||||
* interface for retrieveing scheduled scripts
|
||||
*/
|
||||
class ScriptScheduler {
|
||||
class ScriptScheduler : public properties::PropertyOwner {
|
||||
public:
|
||||
ScriptScheduler();
|
||||
|
||||
struct ScheduledScript {
|
||||
ScheduledScript() = default;
|
||||
ScheduledScript(const ghoul::Dictionary& dict);
|
||||
@@ -137,6 +142,7 @@ public:
|
||||
static documentation::Documentation Documentation();
|
||||
|
||||
private:
|
||||
properties::BoolProperty _enabled;
|
||||
std::vector<double> _timings;
|
||||
std::vector<std::string> _forwardScripts;
|
||||
std::vector<std::string> _backwardScripts;
|
||||
|
||||
Reference in New Issue
Block a user