本文整理汇总了C++中vmap::TileAssembler::addWorldAreaMapId方法的典型用法代码示例。如果您正苦于以下问题:C++ TileAssembler::addWorldAreaMapId方法的具体用法?C++ TileAssembler::addWorldAreaMapId怎么用?C++ TileAssembler::addWorldAreaMapId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmap::TileAssembler
的用法示例。
在下文中一共展示了TileAssembler::addWorldAreaMapId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//=======================================================
int main(int argc, char* argv[])
{
bool ok = true;
char *src = "buildings";
char *dest = "vmaps";
char *conffile = NULL;
VMAP::TileAssembler* ta = new VMAP::TileAssembler(std::string(src), std::string(dest));
ta->setModelNameFilterMethod(modelNameFilter);
static uint32 maps[999] = { 0, 1, 13, 25, 29, 30, 33, 34, 35, 36, 37, 42, 43, 44, 47, 48, 70, 90, 109, 129, 169, 189, 209, 229, 230, 249, 269, 289, 309, 329, 369, 389, 409, 429, 449, 450, 451, 469, 489, 509, 529, 530, 531, 532, 533, 534, 540, 542, 543, 544, 545, 546, 547, 548, 550, 552, 553, 554, 555, 556, 557, 558, 559, 560, 562, 564, 565, 568, 571, 572, 573, 574, 575, 576, 578, 580, 582, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 628, 641, 642, 647, 649, 650 };
for(uint32 i = 0; maps[i] != 0; ++i)
ta->addWorldAreaMapId( maps[i] );
if(ok) { ok = ta->convertWorld(); }
if(ok) {
printf("Ok, all done\n");
} else {
printf("exit with errors\n");
return 1;
}
delete ta;
return 0;
}
示例2: main
//=======================================================
int main(int argc, char* argv[])
{
bool ok = true;
char *src = "buildings";
char *dest = "vmaps";
char *conffile = NULL;
VMAP::TileAssembler* ta = new VMAP::TileAssembler(std::string(src), std::string(dest));
ta->setModelNameFilterMethod(modelNameFilter);
static uint32 maps[999] = { 509, 469, 189, 30, 37, 33, 533, 209, 309, 560, 534, 532, 543, 568, 564, 0, 1, 530 };
for(uint32 i = 0; maps[i] != 0; ++i)
ta->addWorldAreaMapId( maps[i] );
if(ok) { ok = ta->convertWorld(); }
if(ok) {
printf("Ok, all done\n");
} else {
printf("exit with errors\n");
return 1;
}
delete ta;
return 0;
}