Class for writing the string IDs. More...
Public Member Functions | |
| StringNameWriter (StringList *strings) | |
| Writer for the string names. | |
| void | WriteStringID (const char *name, int stringid) |
| Write the string ID. | |
| void | Finalise (const StringData &data) |
| Finalise writing the file. | |
Data Fields | |
| StringList * | strings |
| The string names. | |
Class for writing the string IDs.
Definition at line 189 of file game_text.cpp.
| StringNameWriter::StringNameWriter | ( | StringList * | strings | ) | [inline] |
Writer for the string names.
| strings | The string table to add the strings to. |
Definition at line 196 of file game_text.cpp.
| void StringNameWriter::Finalise | ( | const StringData & | data | ) | [inline, virtual] |
Finalise writing the file.
| data | The data about the string. |
Implements HeaderWriter.
Definition at line 205 of file game_text.cpp.
| void StringNameWriter::WriteStringID | ( | const char * | name, | |
| int | stringid | |||
| ) | [inline, virtual] |
Write the string ID.
| name | The name of the string. | |
| stringid | The ID of the string. |
Implements HeaderWriter.
Definition at line 200 of file game_text.cpp.
References SmallVector< T, S >::Append(), SmallVector< T, S >::Length(), and strings.
1.7.1