Freeciv-3.3: /fast/freeciv/nightly/main/server/ruleset/rssanity.h File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
rssanity.h File Reference
`#include "fc_types.h"`
`#include "rscompat.h"`

Go to the source code of this file.

## Functions

bool | autoadjust_ruleset_data (void)
bool | autolock_settings (void)
bool | sanity_check_ruleset_data (struct rscompat_info *compat)
bool | sanity_check_server_setting_value_in_req (ssetv ssetval)

## Function Documentation

## ◆ autoadjust_ruleset_data()

bool autoadjust_ruleset_data | ( | void |  | ) |

Apply some automatic defaults to already loaded rulesets.

Returns TRUE iff everything ok.

Definition at line 1551 of file rssanity.c.

Referenced by load_rulesetdir(), rscompat_postprocess(), and tab_misc::save_now().

## ◆ autolock_settings()

bool autolock_settings | ( | void |  | ) |

Set and lock settings that must have certain value.

Definition at line 1648 of file rssanity.c.

Referenced by settings_ruleset().

## ◆ sanity_check_ruleset_data()

bool sanity_check_ruleset_data | ( | struct rscompat_info * | compat | ) |

Some more sanity checking once all rulesets are loaded. These check for some cross-referencing which was impossible to do while only one party was loaded in load_ruleset_xxx()

Returns TRUE iff everything ok.

Definition at line 853 of file rssanity.c.

Referenced by load_rulesetdir(), tab_misc::sanity_check(), and tab_misc::save_now().

## ◆ sanity_check_server_setting_value_in_req()

bool sanity_check_server_setting_value_in_req | ( | ssetv | ssetval | ) |

Returns TRUE iff the given server setting and value combination is allowed to appear in ServerSetting requirements.

Definition at line 143 of file rssanity.c.

Referenced by universal_kind_values().