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

Method Add

src/strgen/strgen_base.cpp:92–96  ·  view source on GitHub ↗

* Add a newly created LangString. * @param s The name of the string. * @param ls The string to add. */

Source from the content-addressed store, hash-verified

90 * @param ls The string to add.
91 */
92void StringData::Add(std::shared_ptr<LangString> ls)
93{
94 this->name_to_string[ls->name] = ls;
95 this->strings[ls->index] = std::move(ls);
96}
97
98/**
99 * Find a LangString based on the string name.

Callers 3

HandleStringMethod · 0.45
AfterLoadGameFunction · 0.45
AfterLoadStationsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected