当前位置: 首页>>代码示例>>C++>>正文


C++ TileAssembler::convertWorld2方法代码示例

本文整理汇总了C++中vmap::TileAssembler::convertWorld2方法的典型用法代码示例。如果您正苦于以下问题:C++ TileAssembler::convertWorld2方法的具体用法?C++ TileAssembler::convertWorld2怎么用?C++ TileAssembler::convertWorld2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vmap::TileAssembler的用法示例。


在下文中一共展示了TileAssembler::convertWorld2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

//=======================================================
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;
}
开发者ID:KuraiNeko,项目名称:server,代码行数:27,代码来源:vmap_assembler.cpp

示例2: main

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;
}
开发者ID:lucasdnd,项目名称:mangoszero-bots-test,代码行数:28,代码来源:vmap_assembler.cpp

示例3: main

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;
}
开发者ID:Bootz,项目名称:MyCore4Kata,代码行数:43,代码来源:VMapAssembler.cpp


注:本文中的vmap::TileAssembler::convertWorld2方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。