245 int threads = 3, mapnum = -1;
246 float maxAngle = 70.0f;
247 int tileX = -1, tileY = -1;
248 bool skipLiquid =
false,
249 skipContinents =
false,
251 skipBattlegrounds =
false,
255 char* offMeshInputPath =
NULL;
258 bool validParam =
handleArgs(argc, argv, mapnum,
259 tileX, tileY, maxAngle,
260 skipLiquid, skipContinents, skipJunkMaps, skipBattlegrounds,
261 debugOutput, silent, bigBaseUnit, offMeshInputPath, file, threads);
264 return silent ? -1 :
finish(
"You have specified invalid parameters", -1);
266 if (mapnum == -1 && debugOutput)
271 printf(
"You have specifed debug output, but didn't specify a map to generate.\n");
272 printf(
"This will generate debug output for ALL maps.\n");
273 printf(
"Are you sure you want to continue? (y/n) ");
274 if (getchar() !=
'y')
279 return silent ? -3 :
finish(
"Press ENTER to close...", -3);
281 MapBuilder builder(maxAngle, skipLiquid, skipContinents, skipJunkMaps,
282 skipBattlegrounds, debugOutput, bigBaseUnit, offMeshInputPath);
286 builder.buildMeshFromFile(file);
287 else if (tileX > -1 && tileY > -1 && mapnum >= 0)
288 builder.buildSingleTile(mapnum, tileX, tileY);
289 else if (mapnum >= 0)
290 builder.buildMap(
uint32(mapnum));
292 builder.buildAllMaps(threads);
uint32 getMSTime()
Definition: Timer.h:24
arena_t NULL
Definition: jemalloc_internal.h:624
uint32_t uint32
Definition: Define.h:150
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition: Timer.h:42
uint32_t uint32
Definition: g3dmath.h:168
Definition: MapBuilder.h:76
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083