|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
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, RaceInfos > | RACES |
Stores per-race/sex metadata loaded from ChrRaces / ChrModel database tables.
Definition at line 10 of file RaceInfos.h.
|
inlinestatic |
Return all loaded race info entries.
Definition at line 34 of file RaceInfos.h.
|
static |
Get the model file ID for a specific race and sex.
Definition at line 149 of file RaceInfos.cpp.
|
static |
Get the HD model file ID for a given file ID.
Definition at line 114 of file RaceInfos.cpp.
|
static |
Populate a RaceInfos struct from a model file ID.
Definition at line 136 of file RaceInfos.cpp.
|
static |
Initialise the global race info table from the database.
Definition at line 12 of file RaceInfos.cpp.
| bool RaceInfos::barefeet = false |
Whether the race shows bare feet by default.
Definition at line 17 of file RaceInfos.h.
| std::vector<int> RaceInfos::ChrModelID |
ChrModel IDs for this race/sex.
Definition at line 23 of file RaceInfos.h.
| bool RaceInfos::isHD = false |
Whether this is an HD model.
Definition at line 16 of file RaceInfos.h.
| int RaceInfos::modelFallbackRaceID = -1 |
Fallback race for the model.
Definition at line 19 of file RaceInfos.h.
| int RaceInfos::modelFallbackSexID = -1 |
Fallback sex for the model.
Definition at line 20 of file RaceInfos.h.
| std::string RaceInfos::prefix |
Race name prefix used for file lookups.
Definition at line 18 of file RaceInfos.h.
| int RaceInfos::raceID = -1 |
Race ID (-1 = invalid).
Definition at line 13 of file RaceInfos.h.
|
staticprivate |
Definition at line 37 of file RaceInfos.h.
| int RaceInfos::sexID = 0 |
0 = male, 1 = female.
Definition at line 14 of file RaceInfos.h.
| int RaceInfos::textureFallbackRaceID = -1 |
Fallback race for textures.
Definition at line 21 of file RaceInfos.h.
| int RaceInfos::textureFallbackSexID = -1 |
Fallback sex for textures.
Definition at line 22 of file RaceInfos.h.
| int RaceInfos::textureLayoutID = 0 |
Texture layout ID for compositing.
Definition at line 15 of file RaceInfos.h.