Freeciv-3.1
|
#include "fcintl.h"
#include "mem.h"
#include "registry.h"
#include "section_file.h"
#include "comments.h"
Go to the source code of this file.
Macros | |
#define | comment_load(target, comment_file, comment_path) |
Variables | ||
struct { | ||
char * file_header | ||
char * buildings | ||
char * tech_classes | ||
char * techs | ||
char * govs | ||
char * policies | ||
char * uclasses | ||
char * utypes | ||
char * terrains | ||
char * resources | ||
char * extras | ||
char * bases | ||
char * roads | ||
char * styles | ||
char * citystyles | ||
char * musicstyles | ||
char * effects | ||
char * disasters | ||
char * achievements | ||
char * trade_settings | ||
char * goods | ||
char * enablers | ||
char * specialists | ||
char * nations | ||
char * nationgroups | ||
char * nationsets | ||
char * clauses | ||
char * nations_ruledit | ||
} | comments_storage | |
#define comment_load | ( | target, | |
comment_file, | |||
comment_path | |||
) |
void comment_achievements | ( | struct section_file * | sfile | ) |
Write achievements header.
Definition at line 309 of file comments.c.
Referenced by save_game_ruleset().
void comment_bases | ( | struct section_file * | sfile | ) |
Write bases header.
Definition at line 253 of file comments.c.
Referenced by save_terrain_ruleset().
void comment_buildings | ( | struct section_file * | sfile | ) |
Write buildings header.
Definition at line 173 of file comments.c.
Referenced by save_buildings_ruleset().
void comment_citystyles | ( | struct section_file * | sfile | ) |
Write city styles header.
Definition at line 277 of file comments.c.
Referenced by save_styles_ruleset().
void comment_clauses | ( | struct section_file * | sfile | ) |
void comment_disasters | ( | struct section_file * | sfile | ) |
Write disasters header.
Definition at line 301 of file comments.c.
Referenced by save_game_ruleset().
void comment_effects | ( | struct section_file * | sfile | ) |
Write effects header.
Definition at line 293 of file comments.c.
Referenced by save_effects_ruleset().
void comment_enablers | ( | struct section_file * | sfile | ) |
Write action enablers header.
Definition at line 333 of file comments.c.
Referenced by save_game_ruleset().
void comment_extras | ( | struct section_file * | sfile | ) |
Write extras header.
Definition at line 245 of file comments.c.
Referenced by save_terrain_ruleset().
void comment_file_header | ( | struct section_file * | sfile | ) |
void comment_goods | ( | struct section_file * | sfile | ) |
void comment_govs | ( | struct section_file * | sfile | ) |
Write governments header.
Definition at line 197 of file comments.c.
Referenced by save_governments_ruleset().
void comment_musicstyles | ( | struct section_file * | sfile | ) |
Write music styles header.
Definition at line 285 of file comments.c.
Referenced by save_styles_ruleset().
void comment_nationgroups | ( | struct section_file * | sfile | ) |
Write nationgroups header.
Definition at line 357 of file comments.c.
Referenced by save_nations_ruleset().
void comment_nations | ( | struct section_file * | sfile | ) |
Write nations header.
Definition at line 349 of file comments.c.
Referenced by save_nations_ruleset().
void comment_nations_ruledit | ( | struct section_file * | sfile | ) |
Write nations.ruleset [ruledit] section header.
Definition at line 381 of file comments.c.
Referenced by save_nations_ruleset().
void comment_nationsets | ( | struct section_file * | sfile | ) |
Write nationsets header.
Definition at line 365 of file comments.c.
Referenced by save_nations_ruleset().
void comment_policies | ( | struct section_file * | sfile | ) |
Write policies header.
Definition at line 205 of file comments.c.
Referenced by save_governments_ruleset().
void comment_resources | ( | struct section_file * | sfile | ) |
Write resources header.
Definition at line 237 of file comments.c.
Referenced by save_terrain_ruleset().
void comment_roads | ( | struct section_file * | sfile | ) |
Write roads header.
Definition at line 261 of file comments.c.
Referenced by save_terrain_ruleset().
void comment_specialists | ( | struct section_file * | sfile | ) |
Write specialists header.
Definition at line 341 of file comments.c.
Referenced by save_cities_ruleset().
void comment_styles | ( | struct section_file * | sfile | ) |
Write styles header.
Definition at line 269 of file comments.c.
Referenced by save_styles_ruleset().
void comment_tech_classes | ( | struct section_file * | sfile | ) |
Write tech classes' header.
Definition at line 181 of file comments.c.
Referenced by save_techs_ruleset().
void comment_techs | ( | struct section_file * | sfile | ) |
void comment_terrains | ( | struct section_file * | sfile | ) |
Write terrains header.
Definition at line 229 of file comments.c.
Referenced by save_terrain_ruleset().
void comment_trade_settings | ( | struct section_file * | sfile | ) |
Write trade settings header.
Definition at line 317 of file comments.c.
Referenced by save_game_ruleset().
void comment_uclasses | ( | struct section_file * | sfile | ) |
Write unit classes header.
Definition at line 213 of file comments.c.
Referenced by save_units_ruleset().
void comment_utypes | ( | struct section_file * | sfile | ) |
Write unit types header.
Definition at line 221 of file comments.c.
Referenced by save_units_ruleset().
|
static |
Generic comment writing function with some error checking.
Definition at line 151 of file comments.c.
Referenced by comment_achievements(), comment_bases(), comment_buildings(), comment_citystyles(), comment_clauses(), comment_disasters(), comment_effects(), comment_enablers(), comment_extras(), comment_file_header(), comment_goods(), comment_govs(), comment_musicstyles(), comment_nationgroups(), comment_nations(), comment_nations_ruledit(), comment_nationsets(), comment_policies(), comment_resources(), comment_roads(), comment_specialists(), comment_styles(), comment_tech_classes(), comment_techs(), comment_terrains(), comment_trade_settings(), comment_uclasses(), and comment_utypes().
void comments_free | ( | void | ) |
bool comments_load | ( | void | ) |
Load comments to add to the saved rulesets.
Definition at line 62 of file comments.c.
Referenced by main().
char* achievements |
Definition at line 45 of file comments.c.
char* bases |
Definition at line 38 of file comments.c.
Referenced by base_by_number().
char* buildings |
Definition at line 28 of file comments.c.
char* citystyles |
Definition at line 41 of file comments.c.
char* clauses |
Definition at line 53 of file comments.c.
struct { ... } comments_storage |
Referenced by comment_achievements(), comment_bases(), comment_buildings(), comment_citystyles(), comment_clauses(), comment_disasters(), comment_effects(), comment_enablers(), comment_extras(), comment_file_header(), comment_goods(), comment_govs(), comment_musicstyles(), comment_nationgroups(), comment_nations(), comment_nations_ruledit(), comment_nationsets(), comment_policies(), comment_resources(), comment_roads(), comment_specialists(), comment_styles(), comment_tech_classes(), comment_techs(), comment_terrains(), comment_trade_settings(), comment_uclasses(), comment_utypes(), comments_free(), and comments_load().
char* disasters |
Definition at line 44 of file comments.c.
Referenced by receive_packet_game_info_100().
char* effects |
Definition at line 43 of file comments.c.
char* enablers |
Definition at line 48 of file comments.c.
Referenced by action_is_in_use().
char* extras |
Definition at line 37 of file comments.c.
char* file_header |
Definition at line 27 of file comments.c.
char* goods |
Definition at line 47 of file comments.c.
char* govs |
Definition at line 31 of file comments.c.
char* musicstyles |
Definition at line 42 of file comments.c.
char* nationgroups |
Definition at line 51 of file comments.c.
char* nations |
Definition at line 50 of file comments.c.
char* nations_ruledit |
Definition at line 56 of file comments.c.
char* nationsets |
Definition at line 52 of file comments.c.
Referenced by popup_races_dialog().
char* policies |
Definition at line 32 of file comments.c.
char* resources |
Definition at line 36 of file comments.c.
Referenced by receive_packet_ruleset_terrain_100().
char* roads |
Definition at line 39 of file comments.c.
Referenced by road_by_number().
char* specialists |
Definition at line 49 of file comments.c.
char* styles |
Definition at line 40 of file comments.c.
char* tech_classes |
Definition at line 29 of file comments.c.
char* techs |
Definition at line 30 of file comments.c.
Referenced by recalculate_techs_researched(), research_get_reachable_rreqs(), sg_load_sanitycheck(), and sg_load_sanitycheck().
char* terrains |
Definition at line 35 of file comments.c.
char* trade_settings |
Definition at line 46 of file comments.c.
char* uclasses |
Definition at line 33 of file comments.c.
char* utypes |
Definition at line 34 of file comments.c.
Referenced by helptext_nation().