23#ifndef CORSIX_TH_TH_H_
24#define CORSIX_TH_TH_H_
78 const char*
get_string(
size_t section,
size_t index)
const;
82 std::vector<std::vector<const char*>> sections;
85 std::vector<uint8_t> string_buffer;
96 uint32_t res = bytes[3];
115 uint16_t res = bytes[1];
Generic linked list class (for inheriting from)
Definition th.h:30
void remove_from_list()
Definition th.cpp:38
virtual ~link_list()
Definition th.cpp:36
link_list * next
Definition th.h:36
link_list * prev
Definition th.h:35
Theme Hospital localised string list.
Definition th.h:44
size_t get_section_size(size_t section) const
Get the number of strings in a section of the string list.
Definition th.cpp:223
size_t get_section_count() const
Get the number of sections in the string list.
Definition th.cpp:221
th_string_list && operator=(th_string_list &&)=delete
~th_string_list()=default
th_string_list(const th_string_list &)=delete
const char * get_string(size_t section, size_t index) const
Get a string from the string list.
Definition th.cpp:227
th_string_list & operator=(const th_string_list &)=delete
th_string_list(th_string_list &&)=delete
uint16_t bytes_to_uint16_le(const uint8_t *bytes)
Definition th.h:114
uint32_t bytes_to_uint32_le(const uint8_t *bytes)
Definition th.h:95