Freeciv-3.2
|
#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 "ruleset.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_3_2 |
#define FORMAT_VERSION RSFORMAT_3_2 |
Definition at line 55 of file rulesave.c.
|
static |
Create new ruleset section file with common header.
Definition at line 60 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 797 of file rulesave.c.
Referenced by save_effects_ruleset().
|
static |
Save if an action always will consume the actor.
Definition at line 963 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 597 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 546 of file rulesave.c.
Referenced by save_muuk_action_auto().
Save what actions will block this action.
Definition at line 988 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save details of an action.
Definition at line 939 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save max range of an action.
Definition at line 893 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 1041 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save range of an action.
Definition at line 913 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save ui_name of one action.
Definition at line 871 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 282 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 1070 of file rulesave.c.
Referenced by save_actions_ruleset().
|
static |
Save unit combat bonuses list.
Definition at line 3059 of file rulesave.c.
Referenced by save_units_ruleset().
|
static |
Save bool value that has default applied upon loading.
Definition at line 105 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 85 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 269 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 650 of file rulesave.c.
Referenced by save_cities_ruleset().
|
static |
Save name of the object.
Definition at line 126 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 2015 of file rulesave.c.
Referenced by save_nations_ruleset().
|
static |
Save vector of requirements
Definition at line 149 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 3370 of file rulesave.c.
Referenced by main(), and tab_misc::save_now().
Save ruleset file.
Definition at line 378 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 356 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 209 of file rulesave.c.
Referenced by save_game_ruleset(), and save_nation().
|
static |
Save terrain reference
Definition at line 249 of file rulesave.c.
Referenced by save_terrain_ruleset().
|
static |
Save list of AI traits
Definition at line 1969 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 329 of file rulesave.c.
Referenced by save_units_ruleset().
|
static |
Save units vector. Input is NULL terminated array of units to save.
Definition at line 306 of file rulesave.c.
Referenced by save_nation().
|
static |
Save one veteran system.
Definition at line 3024 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 640 of file rulesave.c.
Referenced by save_muuk_action_auto().