mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
More work on Time class
Fixed bool -> int conversion in SpiceManager
This commit is contained in:
@@ -34,8 +34,15 @@ namespace scripting {
|
||||
class ScriptEngine {
|
||||
public:
|
||||
struct LuaLibrary {
|
||||
struct Function {
|
||||
std::string name;
|
||||
lua_CFunction function;
|
||||
std::string helpText;
|
||||
};
|
||||
std::string name;
|
||||
std::vector<std::pair<std::string, lua_CFunction>> functions;
|
||||
std::vector<Function> functions;
|
||||
|
||||
bool operator<(const LuaLibrary& rhs) const;
|
||||
};
|
||||
|
||||
ScriptEngine();
|
||||
@@ -57,7 +64,7 @@ private:
|
||||
void remapPrintFunction();
|
||||
|
||||
lua_State* _state;
|
||||
std::set<unsigned int> _registeredLibraries;
|
||||
std::set<LuaLibrary> _registeredLibraries;
|
||||
};
|
||||
|
||||
} // namespace scripting
|
||||
|
||||
Reference in New Issue
Block a user