public void SetLuaCall(string luacall) { luaCommandProperty.Value = luacall; callback = () => { // execute the current command with the scripting service _scriptingService.ExecuteStringOnMainScript(LuaCommand); }; }
public void SetLuaExpresion(string luaExpression) { luaExpressionProperty.Value = luaExpression; luaFunc = () => { // execute the current command with the scripting service string result = _scriptingService.ExecuteStringOnMainScript("return " + LuaExpression); return(result); }; }