|
CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
|
Theme Hospital localised string list. More...
#include <th.h>
Public Member Functions | |
| th_string_list (const uint8_t *data, size_t length) | |
| th_string_list ()=delete | |
| th_string_list (const th_string_list &)=delete | |
| th_string_list (th_string_list &&)=delete | |
| th_string_list & | operator= (const th_string_list &)=delete |
| th_string_list && | operator= (th_string_list &&)=delete |
| ~th_string_list ()=default | |
| size_t | get_section_count () const |
| Get the number of sections in the string list. | |
| size_t | get_section_size (size_t section) const |
| Get the number of strings in a section of the string list. | |
| const char * | get_string (size_t section, size_t index) const |
| Get a string from the string list. | |
Theme Hospital localised string list.
Presents Theme Hospital strings by section and index.
| th_string_list::th_string_list | ( | const uint8_t * | data, |
| size_t | length | ||
| ) |
Construct an instance of string_list from the given data from a Theme Hosptial string file. The format of the data is described at: https://github.com/alexandergitter/theme-hospital-spec/blob/master/format-specification.md#strings
| data | A pointer to the raw data |
| length | The size of the data |
|
delete |
|
delete |
|
delete |
|
default |
| size_t th_string_list::get_section_count | ( | ) | const |
Get the number of sections in the string list.
| size_t th_string_list::get_section_size | ( | size_t | section | ) | const |
Get the number of strings in a section of the string list.
Get a string from the string list.
| section | Section index in range [0, getSectionCount() - 1] |
| index | String index in range [0, getSectionSize(iSection) - 1] |
|
delete |
|
delete |