|
OpenTTD Source
14.0-beta3
|
Data that is to be stored when backing up StringParameters. More...
#include <strings_type.h>
Public Member Functions | |
| StringParameterBackup & | operator= (uint64_t data) |
| Assign the numeric data with the given value, while clearing the stored string. More... | |
| StringParameterBackup & | operator= (const std::string_view string) |
| Assign a copy of the given string to the string field, while clearing the data field. More... | |
Data Fields | |
| uint64_t | data |
| The data field; valid when string has no value. | |
| std::optional< std::string > | string |
| The string value. | |
Data that is to be stored when backing up StringParameters.
Definition at line 92 of file strings_type.h.
|
inline |
Assign a copy of the given string to the string field, while clearing the data field.
| string | The new value of the string. |
Definition at line 113 of file strings_type.h.
|
inline |
Assign the numeric data with the given value, while clearing the stored string.
| data | The new value of the data field. |
Definition at line 101 of file strings_type.h.
References data.