Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
adtfile.h File Reference
#include "mpqfile.h"
#include "wmo.h"
#include "model.h"
#include <vector>
Include dependency graph for adtfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ADTFile
struct  Cell
struct  chunk
struct  MapChunkHeader
struct  mcell
struct  svec
struct  triangle
struct  vec

Macros

#define CHUNKSIZE   ((TILESIZE) / 16.0f)
#define TILESIZE   (533.33333f)
#define UNITSIZE   (CHUNKSIZE / 8.0f)

Functions

void FixNameCase (char *name, size_t len)
void FixNameSpaces (char *name, size_t len)
char * GetExtension (char *FileName)
char * GetPlainName (char *FileName)
char const * GetPlainName (char const *FileName)

Macro Definition Documentation

◆ CHUNKSIZE

#define CHUNKSIZE   ((TILESIZE) / 16.0f)

Definition at line 15 of file adtfile.h.

◆ TILESIZE

#define TILESIZE   (533.33333f)

Definition at line 14 of file adtfile.h.

◆ UNITSIZE

#define UNITSIZE   (CHUNKSIZE / 8.0f)

Definition at line 16 of file adtfile.h.

Function Documentation

◆ FixNameCase()

void FixNameCase ( char * name,
size_t len )

◆ FixNameSpaces()

void FixNameSpaces ( char * name,
size_t len )

Definition at line 51 of file adtfile.cpp.

Referenced by ExtractGameobjectModels(), ExtractSingleModel(), and ADTFile::init().

◆ GetExtension()

char * GetExtension ( char * FileName)

Definition at line 60 of file adtfile.cpp.

Referenced by ExtractGameobjectModels().

◆ GetPlainName() [1/2]

char * GetPlainName ( char * FileName)

Definition at line 25 of file adtfile.cpp.

◆ GetPlainName() [2/2]

char const * GetPlainName ( char const * FileName)