TrinityCore
vmapexport.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef VMAPEXPORT_H
19#define VMAPEXPORT_H
20
21#include "Define.h"
22#include <string>
23#include <unordered_map>
24
25// flags of each spawn
27{
28 MOD_HAS_BOUND = 1 << 0,
29 MOD_PARENT_SPAWN = 1 << 1
30};
31
32// flags of each model
33enum class ModelFlags : uint32
34{
35 None = 0x0,
36 IsM2 = 0x1
37};
38
39struct WMODoodadData;
40
41extern const char * szWorkDirWmo;
42extern std::unordered_map<std::string, WMODoodadData> WmoDoodads;
43
44uint32 GenerateUniqueObjectId(uint32 clientId, uint16 clientDoodadId, bool isWmo);
45
46bool FileExists(const char * file);
47
48bool ExtractSingleWmo(std::string& fname);
49bool ExtractSingleModel(std::string& fname);
50
52
53#endif
uint16_t uint16
Definition: Define.h:143
uint32_t uint32
Definition: Define.h:142
std::unordered_map< std::string, WMODoodadData > WmoDoodads
Definition: vmapexport.cpp:70
ModelFlags
Definition: vmapexport.h:34
bool ExtractSingleModel(std::string &fname)
void ExtractGameobjectModels()
uint32 GenerateUniqueObjectId(uint32 clientId, uint16 clientDoodadId, bool isWmo)
Definition: vmapexport.cpp:170
bool FileExists(const char *file)
Definition: vmapexport.cpp:178
ModelInstanceFlags
Definition: vmapexport.h:27
@ MOD_PARENT_SPAWN
Definition: vmapexport.h:29
@ MOD_HAS_BOUND
Definition: vmapexport.h:28
const char * szWorkDirWmo
Definition: vmapexport.cpp:74
bool ExtractSingleWmo(std::string &fname)
Definition: vmapexport.cpp:188