Пример #1
0
 static public int CallLuaStaticMethod(IntPtr l)
 {
     try {
         LuaWorker     self = (LuaWorker)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Object[] a2;
         checkParams(l, 3, out a2);
         var ret = self.CallLuaStaticMethod(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #2
0
 virtual public object CallLuaMethod(string func, params object[] args)
 {
     return(_worker.CallLuaStaticMethod(func, args));
 }