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

Method FormatTo

src/gamelog.cpp:171–175  ·  view source on GitHub ↗

virtual */

Source from the content-addressed store, hash-verified

169
170
171/* virtual */ void LoggedChangeMode::FormatTo(std::back_insert_iterator<std::string> &output_iterator, GrfIDMapping &, GamelogActionType)
172{
173 /* Changing landscape, or going from scenario editor to game or back. */
174 fmt::format_to(output_iterator, "New game mode: {} landscape: {}", this->mode, this->landscape);
175}
176
177/* virtual */ void LoggedChangeRevision::FormatTo(std::back_insert_iterator<std::string> &output_iterator, GrfIDMapping &, GamelogActionType)
178{

Callers 1

PrintMethod · 0.80

Calls 11

NOT_REACHEDFunction · 0.85
GBFunction · 0.85
FindGRFConfigFunction · 0.85
AddGrfInfoFunction · 0.85
byteswapFunction · 0.85
absFunction · 0.85
format_toFunction · 0.50
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected