More work on Time class

Fixed bool -> int conversion in SpiceManager
This commit is contained in:
Alexander Bock
2014-09-14 15:51:46 +02:00
parent 0eeeb8efd6
commit 9b2a04a8c4
7 changed files with 138 additions and 46 deletions
+9 -2
View File
@@ -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