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

Method Save

src/saveload/game_sl.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 static inline const SaveLoadCompatTable compat_description = _game_language_string_sl_compat;
127
128 void Save(LanguageStrings *ls) const override
129 {
130 SlSetStructListLength(ls->lines.size());
131
132 for (const auto &string : ls->lines) {
133 _game_saveload_string = string;
134 SlObject(nullptr, this->GetDescription());
135 }
136 }
137
138 void Load(LanguageStrings *ls) const override
139 {

Callers

nothing calls this directly

Calls 4

SlSetStructListLengthFunction · 0.85
SlObjectFunction · 0.85
sizeMethod · 0.45
GetDescriptionMethod · 0.45

Tested by

no test coverage detected