static */
| 23 | } |
| 24 | |
| 25 | /* static */ SQInteger ScriptGameSettings::GetValue(const std::string &setting) |
| 26 | { |
| 27 | if (!IsValid(setting)) return -1; |
| 28 | |
| 29 | const SettingDesc *sd = GetSettingFromName(setting); |
| 30 | assert(sd != nullptr); |
| 31 | return sd->AsIntSetting()->Read(&_settings_game); |
| 32 | } |
| 33 | |
| 34 | /* static */ bool ScriptGameSettings::SetValue(const std::string &setting, SQInteger value) |
| 35 | { |
nothing calls this directly
no test coverage detected