AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMapAssembler.cpp File Reference
#include <iostream>
#include <string>
#include "TileAssembler.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
24{
25 std::string src = "Buildings";
26 std::string dest = "vmaps";
27
28 if (argc > 3)
29 {
30 std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
31 return 1;
32 }
33 else
34 {
35 if (argc > 1)
36 src = argv[1];
37 if (argc > 2)
38 dest = argv[2];
39 }
40
41 std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
42
43 VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
44
45 if (!ta->convertWorld2())
46 {
47 std::cout << "exit with errors" << std::endl;
48 delete ta;
49 return 1;
50 }
51
52 delete ta;
53 std::cout << "Ok, all done" << std::endl;
54 return 0;
55}
Definition: TileAssembler.h:93
bool convertWorld2()
Definition: TileAssembler.cpp:67

References VMAP::TileAssembler::convertWorld2().