Freeciv-3.1
|
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) |
#define RULESET_CAPABILITIES RULESET_CAPABILITIES_BASE |
#define ruleset_error | ( | logger, | |
level, | |||
format, | |||
... | |||
) |
char * get_parser_buffer | ( | void | ) |
Return current parser.lua buffer.
Definition at line 553 of file ruleset.c.
Referenced by save_ruleset().
char * get_script_buffer | ( | void | ) |
Return current script.lua buffer.
Definition at line 545 of file ruleset.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 9227 of file ruleset.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().
bool reload_rulesets_settings | ( | void | ) |
Reload the game settings saved in the ruleset file.
Definition at line 9550 of file ruleset.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, | ||
... | |||
) |
int ruleset_purge_redundant_reqs | ( | void | ) |
int ruleset_purge_unused_entities | ( | void | ) |
void rulesets_deinit | ( | void | ) |
Completely deinitialize ruleset system. Server is not in usable state after this.
Definition at line 9311 of file ruleset.c.
Referenced by server_quit().
void send_rulesets | ( | struct conn_list * | dest | ) |
Send all ruleset information to the specified connections.
Definition at line 9573 of file ruleset.c.
Referenced by establish_new_connection(), load_command(), and set_rulesetdir().