Exemplo n.º 1
0
    static int Action(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        LuaFunction arg0 = LuaScriptMgr.GetLuaFunction(L, 1);
        Action      o    = LuaHelper.Action(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Exemplo n.º 2
0
 static int Action(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFunction   arg0 = ToLua.CheckLuaFunction(L, 1);
         System.Action o    = LuaHelper.Action(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
    private static int Action(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            LuaFunction func = ToLua.CheckLuaFunction(L, 1);
            Action      ev   = LuaHelper.Action(func);
            ToLua.Push(L, ev);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }