21 #define RULESET_COMPAT_CAP "+Freeciv-3.0-ruleset"
54 const char *sec,
const char *sub,
61 enum unit_type_flag_id *protecor_flag);
64 const char *old_type);
void rscompat_enablers_add_obligatory_hard_reqs()
Update existing action enablers for new hard obligatory requirements.
struct requirement_vector * lookup_req_list(struct section_file *file, struct rscompat_info *compat, const char *sec, const char *sub, const char *rfor)
Load a requirement list.
int rscompat_check_capabilities(struct section_file *file, const char *filename, struct rscompat_info *info)
Ruleset files should have a capabilities string datafile.options This checks the string and that the ...
const char * rscompat_req_name_3_1(const char *type, const char *old_name)
Replace deprecated requirement type names with currently valid ones.
void rscompat_extra_adjust_3_1(struct rscompat_info *compat, struct extra_type *pextra)
Adjust freeciv-3.0 ruleset extra definitions to freeciv-3.1.
bool rscompat_auto_attack_3_1(struct rscompat_info *compat, struct action_auto_perf *auto_perf, size_t psize, enum unit_type_flag_id *protecor_flag)
Replace deprecated auto_attack configuration.
bool rscompat_old_effect_3_1(const char *type, struct section_file *file, const char *sec_name, struct rscompat_info *compat)
Check if effect name refers to one of the removed effects, and handle it if it does.
bool rscompat_names(struct rscompat_info *info)
Do compatibility things with names before they are referred to.
bool rscompat_old_slow_invasions_3_1(struct rscompat_info *compat, bool slow_invasions)
Replace slow_invasions and friends.
void rscompat_postprocess(struct rscompat_info *info)
Do compatibility things after regular ruleset loading.
const char * rscompat_utype_flag_name_3_1(struct rscompat_info *info, const char *old_type)
Replace deprecated unit type flag names with currently valid ones.
void(* rs_conversion_logger)(const char *msg)
static struct compatibility compat[]
rs_conversion_logger log_cb