//======================================================= int main(int argc, char* argv[]) { if(argc != 3) { std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl; return 1; } std::string src = argv[1]; std::string dest = argv[2]; std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl; VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest); if(!ta->convertWorld2()) { std::cout << "exit with errors" << std::endl; delete ta; return 1; } delete ta; std::cout << "Ok, all done" << std::endl; return 0; }
int main(int argc, char** argv) { printf("mangos-zero vmap (version %s) assembler\n\n", szVMAPMagic); if (argc != 3) { Usage(argv[0]); return 1; } std::string src = argv[1]; std::string dest = argv[2]; std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl; VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest); if (!ta->convertWorld2()) { std::cout << "exit with errors" << std::endl; delete ta; return 1; } delete ta; std::cout << "Ok, all done" << std::endl; return 0; }
int main(int argc, char* argv[]) { if (argc != 3 && argc != 4) { //printf("\nusage: %s <raw data dir> <vmap dest dir> [config file name]\n", argv[0]); printf("\nusage: %s <raw data dir> <vmap dest dir>\n", argv[0]); return 1; } char *src = argv[1]; char *dest = argv[2]; char *conffile = NULL; if (argc >= 4) conffile = argv[3]; VMAP::TileAssembler* ta = new VMAP::TileAssembler(std::string(src), std::string(dest)); ta->setModelNameFilterMethod(modelNameFilter); /* All the names in the list are considered to be world maps or huge instances. These maps will be spilt into tiles in the vmap assemble process */ /* if (conffile != NULL) { if (!readConfigFile(conffile, ta)) { printf("Can not open file config file: %s\n", conffile); delete ta; return 1; } } */ if (!ta->convertWorld2()) { printf("exit with errors\n"); delete ta; return 1; } delete ta; printf("Ok, all done\n"); return 0; }