Ejemplo n.º 1
0
        public void SetLuaCall(string luacall)
        {
            luaCommandProperty.Value = luacall;

            callback = () => {
                // execute the current command with the scripting service
                _scriptingService.ExecuteStringOnMainScript(LuaCommand);
            };
        }
Ejemplo n.º 2
0
        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);
            };
        }