WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
RaceInfos Class Reference

Stores per-race/sex metadata loaded from ChrRaces / ChrModel database tables. More...

#include <RaceInfos.h>

Static Public Member Functions

static void init ()
 Initialise the global race info table from the database.
 
static int getHDModelForFileID (int)
 Get the HD model file ID for a given file ID.
 
static bool getRaceInfosForFileID (int, RaceInfos &)
 Populate a RaceInfos struct from a model file ID.
 
static int getFileIDForRaceSex (const int &race, const int &sex)
 Get the model file ID for a specific race and sex.
 
static const std::map< int, RaceInfos > & getAllRaces ()
 Return all loaded race info entries.
 

Public Attributes

int raceID = -1
 Race ID (-1 = invalid).
 
int sexID = 0
 0 = male, 1 = female.
 
int textureLayoutID = 0
 Texture layout ID for compositing.
 
bool isHD = false
 Whether this is an HD model.
 
bool barefeet = false
 Whether the race shows bare feet by default.
 
std::string prefix
 Race name prefix used for file lookups.
 
int modelFallbackRaceID = -1
 Fallback race for the model.
 
int modelFallbackSexID = -1
 Fallback sex for the model.
 
int textureFallbackRaceID = -1
 Fallback race for textures.
 
int textureFallbackSexID = -1
 Fallback sex for textures.
 
std::vector< int > ChrModelID
 ChrModel IDs for this race/sex.
 

Static Private Attributes

static std::map< int, RaceInfosRACES
 

Detailed Description

Stores per-race/sex metadata loaded from ChrRaces / ChrModel database tables.

Definition at line 10 of file RaceInfos.h.

Member Function Documentation

◆ getAllRaces()

static const std::map< int, RaceInfos > & RaceInfos::getAllRaces ( )
inlinestatic

Return all loaded race info entries.

Definition at line 34 of file RaceInfos.h.

◆ getFileIDForRaceSex()

int RaceInfos::getFileIDForRaceSex ( const int &  race,
const int &  sex 
)
static

Get the model file ID for a specific race and sex.

Definition at line 149 of file RaceInfos.cpp.

◆ getHDModelForFileID()

int RaceInfos::getHDModelForFileID ( int  fileid)
static

Get the HD model file ID for a given file ID.

Definition at line 114 of file RaceInfos.cpp.

Here is the caller graph for this function:

◆ getRaceInfosForFileID()

bool RaceInfos::getRaceInfosForFileID ( int  fileid,
RaceInfos infos 
)
static

Populate a RaceInfos struct from a model file ID.

Definition at line 136 of file RaceInfos.cpp.

Here is the caller graph for this function:

◆ init()

void RaceInfos::init ( )
static

Initialise the global race info table from the database.

Definition at line 12 of file RaceInfos.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ barefeet

bool RaceInfos::barefeet = false

Whether the race shows bare feet by default.

Definition at line 17 of file RaceInfos.h.

◆ ChrModelID

std::vector<int> RaceInfos::ChrModelID

ChrModel IDs for this race/sex.

Definition at line 23 of file RaceInfos.h.

◆ isHD

bool RaceInfos::isHD = false

Whether this is an HD model.

Definition at line 16 of file RaceInfos.h.

◆ modelFallbackRaceID

int RaceInfos::modelFallbackRaceID = -1

Fallback race for the model.

Definition at line 19 of file RaceInfos.h.

◆ modelFallbackSexID

int RaceInfos::modelFallbackSexID = -1

Fallback sex for the model.

Definition at line 20 of file RaceInfos.h.

◆ prefix

std::string RaceInfos::prefix

Race name prefix used for file lookups.

Definition at line 18 of file RaceInfos.h.

◆ raceID

int RaceInfos::raceID = -1

Race ID (-1 = invalid).

Definition at line 13 of file RaceInfos.h.

◆ RACES

std::map< int, RaceInfos > RaceInfos::RACES
staticprivate

Definition at line 37 of file RaceInfos.h.

◆ sexID

int RaceInfos::sexID = 0

0 = male, 1 = female.

Definition at line 14 of file RaceInfos.h.

◆ textureFallbackRaceID

int RaceInfos::textureFallbackRaceID = -1

Fallback race for textures.

Definition at line 21 of file RaceInfos.h.

◆ textureFallbackSexID

int RaceInfos::textureFallbackSexID = -1

Fallback sex for textures.

Definition at line 22 of file RaceInfos.h.

◆ textureLayoutID

int RaceInfos::textureLayoutID = 0

Texture layout ID for compositing.

Definition at line 15 of file RaceInfos.h.


The documentation for this class was generated from the following files: