static int InitMap(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FightManager))) { FightManager obj = (FightManager)ToLua.ToObject(L, 1); obj.InitMap(); return(0); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FightManager), typeof(int[][]), typeof(int[][]))) { FightManager obj = (FightManager)ToLua.ToObject(L, 1); int[][] arg0 = ToLua.CheckObjectArray <int[]>(L, 2); int[][] arg1 = ToLua.CheckObjectArray <int[]>(L, 3); obj.InitMap(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FightManager.InitMap")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }