Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
VMapDefinitions.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef _VMAPDEFINITIONS_H
7#define _VMAPDEFINITIONS_H
8#include <cstdio>
9#include <cstring>
10
11#define LIQUID_TILE_SIZE (533.333f / 128.f)
12
13namespace VMAP
14{
15 const char VMAP_MAGIC[] = "VMAP_5.3";
16 const char RAW_VMAP_MAGIC[] = "VMAP053"; // used in extracted vmap files with raw data
17 const char GAMEOBJECT_MODELS[] = "GameObjectModels.dtree";
18
19 // defined in TileAssembler.cpp currently...
20 bool readChunk(FILE* rf, char *dest, const char *compare, uint32 len);
21}
22
23// Set of helper macros for extractors (VMAP and MMAP)
24#ifndef NO_CORE_FUNCS
25#define VMAP_ERROR_LOG(FILTER, ...) SF_LOG_ERROR(FILTER, __VA_ARGS__)
26#define VMAP_DEBUG_LOG(FILTER, ...) SF_LOG_DEBUG(FILTER, __VA_ARGS__)
27#define VMAP_INFO_LOG(FILTER, ...) SF_LOG_INFO(FILTER, __VA_ARGS__)
28#else
29#define VMAP_ERROR_LOG(FILTER, ...) (void)sizeof(FILTER)
30#define VMAP_DEBUG_LOG(FILTER, ...) (void)sizeof(FILTER)
31#define VMAP_INFO_LOG(FILTER, ...) (void)sizeof(FILTER)
32#endif
33
34#endif
std::uint32_t uint32
Definition Define.h:77
bool readChunk(FILE *rf, char *dest, const char *compare, uint32 len)
const char RAW_VMAP_MAGIC[]
const char VMAP_MAGIC[]
const char GAMEOBJECT_MODELS[]