TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VMapDefinitions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef _VMAPDEFINITIONS_H
20 #define _VMAPDEFINITIONS_H
21 #include <cstring>
22 #include <cstdio>
23 
24 #define LIQUID_TILE_SIZE (533.333f / 128.f)
25 
26 namespace VMAP
27 {
28  const char VMAP_MAGIC[] = "VMAP_4.3";
29  const char RAW_VMAP_MAGIC[] = "VMAP043"; // used in extracted vmap files with raw data
30  const char GAMEOBJECT_MODELS[] = "GameObjectModels.dtree";
31 
32  // defined in TileAssembler.cpp currently...
33  bool readChunk(FILE* rf, char *dest, const char *compare, uint32 len);
34 }
35 
36 // Set of helper macros for extractors (VMAP and MMAP)
37 #ifndef NO_CORE_FUNCS
38 #define VMAP_ERROR_LOG(FILTER, ...) TC_LOG_ERROR(FILTER, __VA_ARGS__)
39 #define VMAP_DEBUG_LOG(FILTER, ...) TC_LOG_DEBUG(FILTER, __VA_ARGS__)
40 #define VMAP_INFO_LOG(FILTER, ...) TC_LOG_INFO(FILTER, __VA_ARGS__)
41 #else
42 #define VMAP_ERROR_LOG(FILTER, ...) (void)sizeof(FILTER)
43 #define VMAP_DEBUG_LOG(FILTER, ...) (void)sizeof(FILTER)
44 #define VMAP_INFO_LOG(FILTER, ...) (void)sizeof(FILTER)
45 #endif
46 
47 #endif
Definition: IVMapManager.h:31
bool readChunk(FILE *rf, char *dest, const char *compare, uint32 len)
Definition: TileAssembler.cpp:40
uint32_t uint32
Definition: Define.h:150
const char GAMEOBJECT_MODELS[]
Definition: VMapDefinitions.h:30
const char VMAP_MAGIC[]
Definition: VMapDefinitions.h:28
const char RAW_VMAP_MAGIC[]
Definition: VMapDefinitions.h:29