MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetEncodedMessage

Method SetEncodedMessage

src/command_type.h:72–75  ·  view source on GitHub ↗

* Set the encoded message string. If set, this is used by the error message window instead of the error StringID, * to allow more information to be displayed to the local player. * @note Do not set an encoded message if the error is not for the local player, as it will never be seen. * @param message EncodedString message to set. */

Source from the content-addressed store, hash-verified

70 * @param message EncodedString message to set.
71 */
72 void SetEncodedMessage(EncodedString &&message)
73 {
74 this->encoded_message = std::move(message);
75 }
76
77 /**
78 * Get the last encoded error message.

Callers 5

CommandCostWithParamFunction · 0.80
CheckCompanyHasMoneyFunction · 0.80
CheckOwnershipFunction · 0.80
CmdConvertRoadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected