MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getTownArguments

Function getTownArguments

src/OpenLoco/src/Ui/ViewportInteraction.cpp:209–220  ·  view source on GitHub ↗

0x004CD7FB

Source from the content-addressed store, hash-verified

207
208 // 0x004CD7FB
209 static bool getTownArguments(const TownId id)
210 {
211 auto town = TownManager::get(id);
212
213 auto args = FormatArguments::mapToolTip(StringIds::wcolour3_stringid_2, town->name); // args + 4 empty
214 args.skip(2);
215 args.push(StringIds::town_size_and_population);
216 args.push(town->getTownSizeString());
217 args.push(town->population);
218
219 return true;
220 }
221
222 // 0x004CD8D5
223 static bool getIndustryArguments(InteractionArg& interaction)

Callers 1

getItemLeftFunction · 0.85

Calls 4

getTownSizeStringMethod · 0.80
getFunction · 0.70
skipMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected