Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
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
13
namespace
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
uint32
std::uint32_t uint32
Definition
Define.h:77
VMAP
Definition
IVMapManager.h:19
VMAP::readChunk
bool readChunk(FILE *rf, char *dest, const char *compare, uint32 len)
Definition
TileAssembler.cpp:28
VMAP::RAW_VMAP_MAGIC
const char RAW_VMAP_MAGIC[]
Definition
VMapDefinitions.h:16
VMAP::VMAP_MAGIC
const char VMAP_MAGIC[]
Definition
VMapDefinitions.h:15
VMAP::GAMEOBJECT_MODELS
const char GAMEOBJECT_MODELS[]
Definition
VMapDefinitions.h:17
src
server
collision
VMapDefinitions.h
Generated on
for Project SkyFire Core by
1.17.0