Freeciv-3.3
|
Go to the source code of this file.
Typedefs | |
typedef void(* | rs_conversion_logger) (const char *msg) |
Functions | |
bool | load_rulesets (const char *restore, const char *alt, bool compat_mode, rs_conversion_logger logger, bool act, bool buffer_script, bool load_luadata) |
bool | reload_rulesets_settings (void) |
void | send_rulesets (struct conn_list *dest) |
void | rulesets_deinit (void) |
void | ruleset_error_real (rs_conversion_logger logger, const char *file, const char *function, int line, enum log_level level, const char *format,...) fc__attribute((__format__(__printf__ |
char * | get_script_buffer (void) |
char * | get_parser_buffer (void) |
int | ruleset_purge_unused_entities (void) |
int | ruleset_purge_redundant_reqs (void) |
Definition at line 77 of file ruleload.h.
#define GAME_DEFAULT_ACH_VALUE 1 |
Definition at line 78 of file ruleload.h.
#define GAME_DEFAULT_ADDTOSIZE 9 |
Definition at line 73 of file ruleload.h.
Definition at line 74 of file ruleload.h.
#define GAME_DEFAULT_DISASTER_FREQ 10 |
Definition at line 76 of file ruleload.h.
Definition at line 75 of file ruleload.h.
#define RS_DEFAULT_BASE_TECH_COST 20 |
Definition at line 113 of file ruleload.h.
Definition at line 108 of file ruleload.h.
#define RS_DEFAULT_CONVERT_SPEED 50 |
Definition at line 123 of file ruleload.h.
#define RS_DEFAULT_CULTURE_MIGRATION_PML 50 |
Definition at line 96 of file ruleload.h.
#define RS_DEFAULT_CULTURE_VIC_LEAD 300 |
Definition at line 95 of file ruleload.h.
#define RS_DEFAULT_CULTURE_VIC_POINTS 1000 |
Definition at line 94 of file ruleload.h.
Definition at line 109 of file ruleload.h.
#define RS_DEFAULT_EXTRA_APPEARANCE 15 |
Definition at line 103 of file ruleload.h.
#define RS_DEFAULT_EXTRA_DISAPPEARANCE 15 |
Definition at line 104 of file ruleload.h.
#define RS_DEFAULT_GOLD_UPKEEP_STYLE "City" |
Definition at line 89 of file ruleload.h.
#define RS_DEFAULT_GOODS_SELECTION GSM_LEAVING |
Definition at line 101 of file ruleload.h.
#define RS_DEFAULT_HISTORY_INTEREST_PML 0 |
Definition at line 97 of file ruleload.h.
#define RS_DEFAULT_MIN_TECH_COST 20 |
Definition at line 117 of file ruleload.h.
Definition at line 79 of file ruleload.h.
Definition at line 80 of file ruleload.h.
Definition at line 81 of file ruleload.h.
Definition at line 121 of file ruleload.h.
Definition at line 106 of file ruleload.h.
Definition at line 107 of file ruleload.h.
Definition at line 87 of file ruleload.h.
#define RS_DEFAULT_SMALL_WONDER_VISIBILITY "Always" |
Definition at line 111 of file ruleload.h.
Definition at line 90 of file ruleload.h.
#define RS_DEFAULT_TECH_LEAKAGE "None" |
Definition at line 91 of file ruleload.h.
Definition at line 86 of file ruleload.h.
Definition at line 85 of file ruleload.h.
Definition at line 82 of file ruleload.h.
Definition at line 83 of file ruleload.h.
Definition at line 84 of file ruleload.h.
#define RS_DEFAULT_TECH_UPKEEP_STYLE "None" |
Definition at line 92 of file ruleload.h.
Definition at line 122 of file ruleload.h.
#define RS_DEFAULT_WORLD_PEACE_TURNS 20 |
Definition at line 99 of file ruleload.h.
#define RS_MAX_BASE_TECH_COST 20000 |
Definition at line 115 of file ruleload.h.
#define RS_MAX_MIN_TECH_COST 20000 |
Definition at line 119 of file ruleload.h.
#define RS_MIN_BASE_TECH_COST 0 |
Definition at line 114 of file ruleload.h.
#define RS_MIN_MIN_TECH_COST 0 |
Definition at line 118 of file ruleload.h.
#define RSFORMAT_3_2 30 |
Definition at line 36 of file ruleload.h.
#define RSFORMAT_3_3 40 |
Definition at line 37 of file ruleload.h.
#define RSFORMAT_CURRENT RSFORMAT_3_3 |
Definition at line 38 of file ruleload.h.
#define RULESET_CAPABILITIES RULESET_CAPABILITIES_BASE |
Definition at line 24 of file ruleload.h.
Definition at line 20 of file ruleload.h.
Definition at line 59 of file ruleload.h.
Return current parser.lua buffer.
Definition at line 564 of file ruleload.c.
Referenced by save_ruleset().
Return current script.lua buffer.
Definition at line 556 of file ruleload.c.
Referenced by save_ruleset().
bool load_rulesets | ( | const char * | restore, |
const char * | alt, | ||
bool | compat_mode, | ||
rs_conversion_logger | logger, | ||
bool | act, | ||
bool | buffer_script, | ||
bool | load_luadata | ||
) |
Loads the rulesets.
Definition at line 9188 of file ruleload.c.
Referenced by ruledit_gui::launch_now(), main(), manual_command(), savegame2_load(), savegame3_load(), set_rulesetdir(), sg_load_ruleset(), sg_load_savefile(), srv_main(), and srv_prepare().
Reload the game settings saved in the ruleset file.
Definition at line 9516 of file ruleload.c.
Referenced by reset_command().
void ruleset_error_real | ( | rs_conversion_logger | logger, |
const char * | file, | ||
const char * | function, | ||
int | line, | ||
enum log_level | level, | ||
const char * | format, | ||
... | |||
) |
Purge redundant requirement in requirement vectors.
Definition at line 492 of file ruleload.c.
Referenced by main().
Purge unused entities from the ruleset.
Definition at line 315 of file ruleload.c.
Referenced by main().
Completely deinitialize ruleset system. Server is not in usable state after this.
Definition at line 9268 of file ruleload.c.
Referenced by server_quit().
Send all ruleset information to the specified connections.
Definition at line 9539 of file ruleload.c.
Referenced by establish_new_connection(), load_command(), and set_rulesetdir().