Add support for c closures in lua

This commit is contained in:
Emil Axelsson
2017-07-06 22:30:57 +02:00
parent ee36a97762
commit 351a246f3a
14 changed files with 86 additions and 1 deletions

View File

@@ -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."
},