TrinityCore
Loading...
Searching...
No Matches
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
26{
27 MOD_M2 = 1,
29 MOD_HAS_BOUND = 1<<2
30};
31
32struct WMODoodadData;
33
34extern const char * szWorkDirWmo;
35extern std::unordered_map<std::string, WMODoodadData> WmoDoodads;
36
37uint32 GenerateUniqueObjectId(uint32 clientId, uint16 clientDoodadId);
38
39bool FileExists(const char * file);
40void strToLower(char* str);
41
42bool ExtractSingleWmo(std::string& fname);
43bool ExtractSingleModel(std::string& fname);
44
46
47#endif
uint16_t uint16
Definition Define.h:134
uint32_t uint32
Definition Define.h:133
std::unordered_map< std::string, WMODoodadData > WmoDoodads
uint32 GenerateUniqueObjectId(uint32 clientId, uint16 clientDoodadId)
bool ExtractSingleModel(std::string &fname)
void ExtractGameobjectModels()
ModelFlags
Definition vmapexport.h:26
@ MOD_M2
Definition vmapexport.h:27
@ MOD_WORLDSPAWN
Definition vmapexport.h:28
@ MOD_HAS_BOUND
Definition vmapexport.h:29
bool FileExists(const char *file)
const char * szWorkDirWmo
void strToLower(char *str)
bool ExtractSingleWmo(std::string &fname)