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

Method GetSetting

src/script/script_config.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int ScriptConfig::GetSetting(const std::string &name) const
84{
85 const auto it = this->settings.find(name);
86 if (it == this->settings.end()) return this->info->GetSettingDefaultValue(name);
87 return it->second;
88}
89
90void ScriptConfig::SetSetting(std::string_view name, int value)
91{

Callers 3

DrawWidgetMethod · 0.45
OnClickMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected