Legends-of-Azeroth-Pandaria-5.4.8

Форк
0
59 строк · 1.7 Кб
1
/*
2
 * Copyright (C) 2011-2016 Project SkyFire <http://www.projectskyfire.org/>
3
 * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
4
 * Copyright (C) 2005-2016 MaNGOS <http://getmangos.com/>
5
 *
6
 * This program is free software; you can redistribute it and/or modify it
7
 * under the terms of the GNU General Public License as published by the
8
 * Free Software Foundation; either version 3 of the License, or (at your
9
 * option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
 * more details.
15
 *
16
 * You should have received a copy of the GNU General Public License along
17
 * with this program. If not, see <http://www.gnu.org/licenses/>.
18
 */
19
 
20
#include <string>
21
#include <iostream>
22

23
#include "TileAssembler.h"
24

25
int main(int argc, char* argv[])
26
{
27

28
    std::string src = "Buildings";
29
    std::string dest = "vmaps";
30

31
    if(argc > 3)
32
    {
33
        //printf("\nusage: %s <raw data dir> <vmap dest dir> [config file name]\n", argv[0]);
34
        std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
35
        return 1;
36
    }
37
    else
38
    {
39
        if (argc > 1)
40
            src = argv[1];
41
        if (argc > 2)
42
            dest = argv[2];
43
    }    
44

45
    std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
46

47
    VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
48

49
    if(!ta->convertWorld2())
50
    {
51
        std::cout << "exit with errors" << std::endl;
52
        delete ta;
53
        return 1;
54
    }
55

56
    delete ta;
57
    std::cout << "Ok, all done" << std::endl;
58
    return 0;
59
}
60

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.