Example #1
0
 static int GetElementCount(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIGrid obj = (UIGrid)ToLua.CheckObject <UIGrid>(L, 1);
         int    o   = obj.GetElementCount();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }