Freeciv-3.3
|
#include "astring.h"
#include "registry.h"
#include "string_vector.h"
#include "achievements.h"
#include "counters.h"
#include "game.h"
#include "government.h"
#include "map.h"
#include "movement.h"
#include "multipliers.h"
#include "nation.h"
#include "rgbcolor.h"
#include "sex.h"
#include "specialist.h"
#include "style.h"
#include "unittype.h"
#include "version.h"
#include "ruleload.h"
#include "settings.h"
#include "comments.h"
#include "rulesave.h"
Go to the source code of this file.
Data Structures | |
struct | effect_cb_data |
Macros | |
#define | FORMAT_VERSION RSFORMAT_CURRENT |
#define FORMAT_VERSION RSFORMAT_CURRENT |
Definition at line 56 of file rulesave.c.
|
static |
Create new ruleset section file with common header.
Definition at line 61 of file rulesave.c.
Referenced by save_actions_ruleset(), save_buildings_ruleset(), save_cities_ruleset(), save_effects_ruleset(), save_game_ruleset(), save_governments_ruleset(), save_nations_ruleset(), save_styles_ruleset(), save_techs_ruleset(), save_terrain_ruleset(), and save_units_ruleset().
Save one effect. Callback called for each effect in cache.
Definition at line 798 of file rulesave.c.
Referenced by save_effects_ruleset().
|
static |
Save if an action always will consume the actor.
Definition at line 942 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save an action auto performer's action list as a regular setting. This is done because the Action Auto Perform rules system isn't ready to be exposed to the ruleset yet. The setting is a list of actions in the order they should be tried.
Definition at line 598 of file rulesave.c.
Referenced by save_action_post_success_force(), save_actions_ruleset(), and save_muuk_action_auto().
|
static |
Save an action auto performer's !present utype reqs as a regular setting. This is done because the Action Auto Perform rules system isn't ready to be exposed to the ruleset yet. The setting is a list of utype flags that prevents the auto action performer.
Definition at line 547 of file rulesave.c.
Referenced by save_muuk_action_auto().
Save what actions will block this action.
Definition at line 967 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save details of an action.
Definition at line 918 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save max range of an action.
Definition at line 872 of file rulesave.c.
Referenced by save_action_range().
|
static |
Save what actions an actor under certain circumstances will be forced to perform after successfully performing this action.
Definition at line 1020 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save range of an action.
Definition at line 892 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save buildings vector. Input is B_LAST terminated array of buildings to save.
Definition at line 283 of file rulesave.c.
Referenced by save_game_ruleset(), and save_nation().
|
static |
Save a bv_actions to the ruleset as a list of actions.
Definition at line 1049 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save unit combat bonuses list.
Definition at line 3086 of file rulesave.c.
Referenced by save_units_ruleset().
|
static |
Save bool value that has default applied upon loading.
Definition at line 106 of file rulesave.c.
Referenced by save_action_actor_consuming_always(), save_actions_ruleset(), save_cities_ruleset(), and save_game_ruleset().
|
static |
Save int value that has default applied upon loading.
Definition at line 86 of file rulesave.c.
Referenced by save_action_max_range(), save_action_range(), save_cities_ruleset(), save_game_ruleset(), and save_governments_ruleset().
|
static |
Save government reference
Definition at line 270 of file rulesave.c.
Referenced by save_governments_ruleset().
|
static |
Save the action a unit should perform when its missing food, gold or shield upkeep. Save as regular settings since the Action Auto Perform rules system isn't ready to be exposed to the ruleset yet.
Definition at line 651 of file rulesave.c.
Referenced by save_cities_ruleset().
|
static |
Save name of the object.
Definition at line 127 of file rulesave.c.
Referenced by save_buildings_ruleset(), save_cities_ruleset(), save_game_ruleset(), save_governments_ruleset(), save_nation(), save_nations_ruleset(), save_styles_ruleset(), save_techs_ruleset(), save_terrain_ruleset(), and save_units_ruleset().
|
static |
Save a single nation.
Definition at line 2042 of file rulesave.c.
Referenced by save_nations_ruleset().
|
static |
Save vector of requirements
Definition at line 150 of file rulesave.c.
Referenced by effect_save(), save_actions_ruleset(), save_buildings_ruleset(), save_cities_ruleset(), save_game_ruleset(), save_governments_ruleset(), save_styles_ruleset(), save_techs_ruleset(), save_terrain_ruleset(), and save_units_ruleset().
Save ruleset to directory given.
Definition at line 3397 of file rulesave.c.
Referenced by main(), and tab_misc::save_now().
Save ruleset file.
Definition at line 379 of file rulesave.c.
Referenced by save_actions_ruleset(), save_buildings_ruleset(), save_cities_ruleset(), save_effects_ruleset(), save_game_ruleset(), save_governments_ruleset(), save_nations_ruleset(), save_styles_ruleset(), save_techs_ruleset(), save_terrain_ruleset(), and save_units_ruleset().
|
static |
Save strvec as ruleset vector of strings
Definition at line 357 of file rulesave.c.
Referenced by save_buildings_ruleset(), save_cities_ruleset(), save_game_ruleset(), save_governments_ruleset(), save_techs_ruleset(), save_terrain_ruleset(), and save_units_ruleset().
|
static |
Save techs vector. Input is A_LAST terminated array of techs to save.
Definition at line 210 of file rulesave.c.
Referenced by save_game_ruleset(), and save_nation().
|
static |
Save terrain reference
Definition at line 250 of file rulesave.c.
Referenced by save_terrain_ruleset().
|
static |
Save list of AI traits
Definition at line 1996 of file rulesave.c.
Referenced by save_nation(), and save_nations_ruleset().
|
static |
Save vector of unit class names based on bitvector bits
Definition at line 330 of file rulesave.c.
Referenced by save_units_ruleset().
|
static |
Save units vector. Input is nullptr terminated array of units to save.
Definition at line 307 of file rulesave.c.
Referenced by save_nation().
|
static |
Save one veteran system.
Definition at line 3051 of file rulesave.c.
Referenced by save_units_ruleset().
|
static |
Missing unit upkeep should only contain output type and absence of blocking unit type flag requirements.
Definition at line 641 of file rulesave.c.
Referenced by save_muuk_action_auto().