Public Member Functions | |
bool | IsEditable (bool do_command=false) const |
Check whether the setting is editable in the current gamemode. | |
Data Fields | |
SettingDescBase | desc |
Settings structure (going to configuration file). | |
SaveLoad | save |
Internal structure (going to savegame, parts to config). |
Definition at line 101 of file settings_internal.h.
bool SettingDesc::IsEditable | ( | bool | do_command = false |
) | const |
Check whether the setting is editable in the current gamemode.
do_command | true if this is about checking a command from the server. |
Definition at line 740 of file settings.cpp.
References _network_server, _networking, SaveLoad::conv, desc, SettingDescBase::flags, save, SGF_NETWORK_ONLY, SGF_NEWGAME_ONLY, SGF_NO_NETWORK, SGF_PER_COMPANY, SGF_SCENEDIT_TOO, and SLF_NO_NETWORK_SYNC.
Referenced by CmdChangeSetting(), SettingEntry::DrawSetting(), and GameSettingsWindow::OnClick().