|
OpenTTD Source 20251104-master-g3befbdd52f
|
Class for writing the string IDs. More...
Public Member Functions | |
| StringNameWriter (StringList &strings) | |
| Writer for the string names. | |
| void | WriteStringID (const std::string &name, size_t stringid) override |
| Write the string ID. | |
| void | Finalise (const StringData &) override |
| Finalise writing the file. | |
Public Member Functions inherited from HeaderWriter | |
| virtual | ~HeaderWriter ()=default |
| Especially destroy the subclasses. | |
| void | WriteHeader (const StringData &data) |
| Write the header information. | |
Data Fields | |
| StringList & | strings |
| The string names. | |
Class for writing the string IDs.
Definition at line 138 of file game_text.cpp.
|
inline |
Writer for the string names.
| strings | The string table to add the strings to. |
Definition at line 145 of file game_text.cpp.
|
inlineoverridevirtual |
Finalise writing the file.
| data | The data about the string. |
Implements HeaderWriter.
Definition at line 154 of file game_text.cpp.
|
inlineoverridevirtual |
Write the string ID.
| name | The name of the string. |
| stringid | The ID of the string. |
Implements HeaderWriter.
Definition at line 149 of file game_text.cpp.
| StringList& StringNameWriter::strings |
The string names.
Definition at line 139 of file game_text.cpp.