mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-23 12:40:01 -06:00
Add support for c closures in lua
This commit is contained in:
@@ -269,6 +269,7 @@ LuaLibrary ScriptScheduler::luaLibrary() {
|
||||
{
|
||||
"loadFile",
|
||||
&luascriptfunctions::loadFile,
|
||||
{},
|
||||
"string",
|
||||
"Load timed scripts from a Lua script file that returns a list of "
|
||||
"scheduled scripts."
|
||||
@@ -276,6 +277,7 @@ LuaLibrary ScriptScheduler::luaLibrary() {
|
||||
{
|
||||
"loadScheduledScript",
|
||||
&luascriptfunctions::loadScheduledScript,
|
||||
{},
|
||||
"string, string, (string, string)",
|
||||
"Load a single scheduled script. The first argument is the time at which "
|
||||
"the scheduled script is triggered, the second argument is the script "
|
||||
@@ -287,6 +289,7 @@ LuaLibrary ScriptScheduler::luaLibrary() {
|
||||
{
|
||||
"clear",
|
||||
&luascriptfunctions::clear,
|
||||
{},
|
||||
"",
|
||||
"Clears all scheduled scripts."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user