ServerSetting requirement type.
Some server settings, like killstack and unreachableprotects, are rules. A
ruleset author may wish to adapt his ruleset to work better with the server
setting rules currently in use.
Other server settings, like autosaves, are purely about the administration
of the Freeciv server. Those are administrative details. Rules shouldn't be
based on them.
Rules should also not be based on settings not visible to all players.
A Boolean server setting is enabled or disabled. It is therefore enough to
specify its name in the requirement syntax. The value is covered by the
requirement's present property.
Introduce the ServerSetting requirement type. It gives access to rule server
settings that has a binary value.
Non binary server settings aren't supported. Support for enum, bitwise and
small int valued settings may be introduced later. That would require
multiplexing the setting value with the setting id and the introduction of
a syntax like "settingname=valuename".
See hrm Feature #648804
git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@35703 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
13 files changed: