Author: sveinung
Date: Wed May 24 11:55:46 2017
New Revision: 35703

URL: http://svn.gna.org/viewcvs/freeciv?rev=35703&view=rev
Log:
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

Modified:
    trunk/ai/default/daieffects.c
    trunk/common/fc_types.h
    trunk/common/metaknowledge.c
    trunk/common/reqtext.c
    trunk/common/requirements.c
    trunk/common/server_settings.c
    trunk/common/server_settings.h
    trunk/doc/README.effects
    trunk/fc_version
    trunk/server/cityturn.c
    trunk/server/rssanity.c
    trunk/server/rssanity.h
    trunk/tools/ruledit/univ_value.c

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: trunk/ai/default/daieffects.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/daieffects.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/fc_types.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/fc_types.h?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/metaknowledge.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/metaknowledge.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/reqtext.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/reqtext.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/requirements.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/requirements.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/server_settings.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/server_settings.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/common/server_settings.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/server_settings.h?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/doc/README.effects
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.effects?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/fc_version
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/fc_version?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/server/rssanity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/rssanity.c?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/server/rssanity.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/rssanity.h?rev=35703&r1=35702&r2=35703&view=diff

Modified: trunk/tools/ruledit/univ_value.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/univ_value.c?rev=35703&r1=35702&r2=35703&view=diff


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to