Classes | |
| struct | _PWTHeader |
| The header found in each case file. More... | |
Typedefs | |
| typedef struct _PWTHeader | PWTHeader |
Functions | |
| bool | unpackResourceFile (const ustring &path) |
| Unpack and extract the resource file. | |
| bool | loadCaseFromFile (const ustring &path, Case::Case &pcase) |
| Load a case from file. | |
| bool | loadSpriteFromFile (const ustring &path, Sprite &sprite) |
| Load a sprite from file. | |
| bool | loadStockFile (const ustring &path, Case::Case *pcase) |
| Load the stock assets config file. | |
| bool | loadThemeXML (const ustring &path, Theme::ColorMap &map) |
| Load the theme from XML. | |
| Textures::Texture | readImage (FILE *f) |
| Read image data from the file. | |
| ustring | readString (FILE *f) |
| Read a string from the file. | |
Variables | |
| const int | FILE_MAGIC_NUM = (('T' << 16) + ('W' << 8) + 'P') |
| Magic number for PWT case file. | |
| const int | FILE_VERSION = 10 |
| Supported version of the PWT case file. | |
| const ustring | SPR_MAGIC_NUM = "SPR" |
| Magic number for the sprite file. | |
| const int | SPR_VERSION = 10 |
| Supported sprite file version. | |
| bool IO::loadCaseFromFile | ( | const ustring & | path, | |
| Case::Case & | pcase | |||
| ) |
Load a case from file.
| path | The path to the file | |
| pcase | Case::Case object to load the data into |
| bool IO::loadSpriteFromFile | ( | const ustring & | path, | |
| Sprite & | sprite | |||
| ) |
Load a sprite from file.
| path | Path to the sprite file | |
| sprite | Sprite object to load the dat into |
| bool IO::loadStockFile | ( | const ustring & | path, | |
| Case::Case * | pcase | |||
| ) |
Load the stock assets config file.
| path | Path to the config file | |
| pcase | Pointer to Case::Case object to load the config options into |
| bool IO::loadThemeXML | ( | const ustring & | path, | |
| Theme::ColorMap & | map | |||
| ) |
Load the theme from XML.
| path | The path to the config file | |
| map | A Theme::ColorMap object to load theme data into |
| Textures::Texture IO::readImage | ( | FILE * | f | ) |
Read image data from the file.
| f | FILE handle with read pointer set to image |
| ustring IO::readString | ( | FILE * | f | ) |
Read a string from the file.
| f | FILE handle with read pointer set to string |
| bool IO::unpackResourceFile | ( | const ustring & | path | ) |
Unpack and extract the resource file.
| path | Path to the resource file |
1.5.3