bool LoadRace(iDocumentNode *raceNode)
Loads an XML section of zero or more region tags.
iObjectRegistry * object_reg
csPtr< iImage > GetImage(const char *race, const char *filename)
Returns a pointer to an iImage specified by the race and filename.
csPtr< iImage > CreateTextureImage(const char *xmlspec)
Takes an xml string specifying race textures and part textures, finds the relevant regions and images...
This class reads in the xml file defining regions and maintains the preload list of textures...
psImageRegion * GetRegion(const char *race, const char *part)
Returns a pointer to a race-specific texture region.
csPDelArray< psImageRegion > regions
csPDelArray< iImage > imagecache
bool Initialize(iObjectRegistry *object_reg, const char *xmlfilename)
This function loads the xml file and cycles through the race tags, calling LoadRace() for each one to...