static int GetSurfaceMapData(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LoadMap obj = (LoadMap)ToLua.CheckObject(L, 1, typeof(LoadMap)); int[][] o = obj.GetSurfaceMapData(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }