Defines some savefile structures. More...
#include "../../common/msg.h"
#include "../mxml/mxml_ufoai.h"
#include <zlib.h>
#include "../../common/msg.h"
Go to the source code of this file.
Defines | |
#define | MAX_SAVESUBSYSTEMS 32 |
#define | SAVE_FILE_VERSION 4 |
Functions | |
qboolean | SAV_QuickSave (void) |
Quick save the current campaign. | |
void | SAV_Init (void) |
Register all save-subsystems and init some cvars and commands. | |
qboolean | B_SaveXML (mxml_node_t *parent) |
Save callback for saving in xml format. | |
qboolean | B_LoadXML (mxml_node_t *parent) |
Loads base data. | |
qboolean | CP_SaveXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | CP_LoadXML (mxml_node_t *parent) |
Load callback for savegames in XML Format. | |
qboolean | HOS_LoadXML (mxml_node_t *parent) |
Saving function for hospital related data. | |
qboolean | HOS_SaveXML (mxml_node_t *parent) |
Saving function for hospital related data. | |
qboolean | BS_SaveXML (mxml_node_t *parent) |
Save callback for savegames. | |
qboolean | BS_LoadXML (mxml_node_t *parent) |
Load callback for savegames. | |
qboolean | AIR_SaveXML (mxml_node_t *parent) |
Save callback for savegames in xml format. | |
qboolean | AIR_LoadXML (mxml_node_t *parent) |
qboolean | AC_SaveXML (mxml_node_t *parent) |
Savecallback for saving in XML Format. | |
qboolean | AC_LoadXML (mxml_node_t *parent) |
Load callback for savin in XML Format. | |
qboolean | E_SaveXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | E_LoadXML (mxml_node_t *parent) |
Load callback for savegames in XML Format. | |
qboolean | RS_SaveXML (mxml_node_t *parent) |
Save callback for research and technologies. | |
qboolean | RS_LoadXML (mxml_node_t *parent) |
Load callback for research and technologies. | |
qboolean | PR_SaveXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | PR_LoadXML (mxml_node_t *parent) |
Load callback for xml savegames. | |
qboolean | MS_SaveXML (mxml_node_t *parent) |
Save callback for messages. | |
qboolean | MS_LoadXML (mxml_node_t *parent) |
Load callback for messages. | |
qboolean | STATS_SaveXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | STATS_LoadXML (mxml_node_t *parent) |
Load callback for savegames in XML Format. | |
qboolean | NAT_SaveXML (mxml_node_t *parent) |
Nation saving callback. | |
qboolean | NAT_LoadXML (mxml_node_t *parent) |
Nation loading xml callback. | |
qboolean | TR_SaveXML (mxml_node_t *parent) |
Save callback for xml savegames. | |
qboolean | TR_LoadXML (mxml_node_t *parent) |
Load callback for xml savegames. | |
qboolean | AB_SaveXML (mxml_node_t *parent) |
Save callback for alien base data. | |
qboolean | AB_LoadXML (mxml_node_t *parent) |
Load callback for alien base data. | |
qboolean | XVI_SaveXML (mxml_node_t *parent) |
XVI map saving callback. | |
qboolean | XVI_LoadXML (mxml_node_t *parent) |
Load the XVI map from the savegame. | |
qboolean | INS_SaveXML (mxml_node_t *parent) |
Save callback for savegames in xml. | |
qboolean | INS_LoadXML (mxml_node_t *parent) |
Load callback for savegames. | |
qboolean | MSO_SaveXML (mxml_node_t *parent) |
saves current notification and pause settings | |
qboolean | MSO_LoadXML (mxml_node_t *parent) |
Restores the notification and pause settings from savegame. | |
qboolean | US_SaveXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | US_LoadXML (mxml_node_t *parent) |
Load callback for xml savegames. | |
qboolean | CP_LoadMissionsXML (mxml_node_t *parent) |
Load callback for savegames in XML Format. | |
qboolean | CP_SaveMissionsXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | CP_SaveInterestsXML (mxml_node_t *parent) |
Save callback for savegames in XML Format. | |
qboolean | CP_LoadInterestsXML (mxml_node_t *parent) |
Load callback for savegames in XML Format. | |
void | B_PostLoadInit (void) |
Set the capacity stuff for all the bases after loading a savegame. | |
void | AIR_PostLoadInit (void) |
Actions needs to be done after loading the savegame. | |
Variables | |
cvar_t * | cl_lastsave |
Defines some savefile structures.
Definition in file cp_save.h.
#define MAX_SAVESUBSYSTEMS 32 |
Definition at line 34 of file cp_save.h.
Referenced by SAV_AddSubsystem().
#define SAVE_FILE_VERSION 4 |
Definition at line 35 of file cp_save.h.
Referenced by SAV_GameSave(), and SAV_VerifyHeader().
qboolean AB_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for alien base data.
[in] | p | XML Node structure, where we get the information from |
<
Definition at line 378 of file cp_alienbase.c.
References ccs_s::alienBases, ccs, Com_Printf(), i, alienBase_s::idx, LIST_Add(), mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetPos2(), alienBase_s::pos, qfalse, qtrue, SAVE_ALIENBASE_ALIENBASES, SAVE_ALIENBASE_BASE, SAVE_ALIENBASE_IDX, SAVE_ALIENBASE_POS, SAVE_ALIENBASE_STEALTH, SAVE_ALIENBASE_SUPPLY, alienBase_s::stealth, and alienBase_s::supply.
Referenced by SAV_Init().
qboolean AB_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for alien base data.
[out] | p | XML Node structure, where we write the information to |
Definition at line 413 of file cp_alienbase.c.
References AB_GetNext(), alienBase_s::idx, mxml_AddFloatValue(), mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddPos2(), alienBase_s::pos, qtrue, SAVE_ALIENBASE_ALIENBASES, SAVE_ALIENBASE_BASE, SAVE_ALIENBASE_IDX, SAVE_ALIENBASE_POS, SAVE_ALIENBASE_STEALTH, SAVE_ALIENBASE_SUPPLY, alienBase_s::stealth, and alienBase_s::supply.
Referenced by SAV_Init().
qboolean AC_LoadXML | ( | mxml_node_t * | parent | ) |
Load callback for savin in XML Format.
Definition at line 744 of file cp_aliencont.c.
References AL_FillInContainment(), base_s::alienscont, aliensCont_s::amountAlive, aliensCont_s::amountDead, B_GetBaseByIDX(), B_GetFoundedBaseByIDX(), ccs_s::breathingMailSent, ccs, Com_GetTeamDefinitionByID(), Com_Printf(), i, MAX_ALIENCONT_CAP, MAX_BASES, mxml_GetBool(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), qfalse, qtrue, SAVE_ALIENCONT_ALIEN, SAVE_ALIENCONT_ALIENCONT, SAVE_ALIENCONT_AMOUNTALIVE, SAVE_ALIENCONT_AMOUNTDEAD, SAVE_ALIENCONT_BASEIDX, SAVE_ALIENCONT_BREATHINGMAILSENT, SAVE_ALIENCONT_CONT, SAVE_ALIENCONT_TEAMID, and aliensCont_s::teamDef.
Referenced by SAV_Init().
qboolean AC_SaveXML | ( | mxml_node_t * | parent | ) |
Savecallback for saving in XML Format.
Definition at line 702 of file cp_aliencont.c.
References AC_ContainmentAllowed(), base_s::alienscont, aliensCont_s::amountAlive, aliensCont_s::amountDead, B_GetFoundedBaseByIDX(), ccs_s::breathingMailSent, ccs, i, teamDef_s::id, MAX_ALIENCONT_CAP, MAX_BASES, mxml_AddBoolValue(), mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddString(), ccs_s::numAliensTD, qtrue, SAVE_ALIENCONT_ALIEN, SAVE_ALIENCONT_ALIENCONT, SAVE_ALIENCONT_AMOUNTALIVE, SAVE_ALIENCONT_AMOUNTDEAD, SAVE_ALIENCONT_BASEIDX, SAVE_ALIENCONT_BREATHINGMAILSENT, SAVE_ALIENCONT_CONT, SAVE_ALIENCONT_TEAMID, and aliensCont_s::teamDef.
Referenced by SAV_Init().
qboolean AIR_LoadXML | ( | mxml_node_t * | parent | ) |
Definition at line 2812 of file cp_aircraft.c.
References AIR_Add(), AIR_CorrectAircraftSlotPointers(), AIR_LoadAircraftXML(), AIR_STATS_SPEED, AIRFIGHT_LoadXML(), ccs, Com_Printf(), aircraft_s::homebase, MAX_UFOONGEOSCAPE, mxml_GetNextNode(), mxml_GetNode(), ccs_s::numAircraft, ccs_s::numUFOs, qfalse, qtrue, SAVE_AIRCRAFT_AIRCRAFT, SAVE_AIRCRAFT_PHALANX, SAVE_AIRCRAFT_PROJECTILES, SAVE_AIRCRAFT_UFOS, aircraft_s::stats, aircraft_s::time, UFO_GetByIDX(), UFO_RemoveFromGeoscape(), and ccs_s::ufos.
Referenced by SAV_Init().
void AIR_PostLoadInit | ( | void | ) |
Actions needs to be done after loading the savegame.
Definition at line 2895 of file cp_aircraft.c.
References AIR_PostLoadInitMissions().
Referenced by SAV_GameActionsAfterLoad().
qboolean AIR_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames in xml format.
Definition at line 2527 of file cp_aircraft.c.
References AIR_GetNextFromBase(), AIR_SaveAircraftXML(), AIRFIGHT_SaveXML(), B_GetFoundedBaseByIDX(), aircraft_s::id, MAX_UFOONGEOSCAPE, mxml_AddNode(), qfalse, qtrue, SAVE_AIRCRAFT_PHALANX, SAVE_AIRCRAFT_PROJECTILES, SAVE_AIRCRAFT_UFOS, and UFO_GetByIDX().
Referenced by SAV_Init().
qboolean B_LoadXML | ( | mxml_node_t * | parent | ) |
Loads base data.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 2898 of file cp_base.c.
References AIRCRAFT_INBASE_INVALID, base_s::aircraftCurrent, base_s::alienInterest, B_GetBaseByIDX(), B_GetBaseIDX, B_GetBuildingIDX, B_GetBuildingTemplate(), B_GetFoundedBaseCount(), B_GetMaxBuildingLevel(), B_LoadBaseSlotsXML(), B_LoadStorageXML(), B_RADAR, B_UpdateBaseCount(), building_s::base, base_s::baseStatus, base_s::batteries, BDEF_InitialiseBaseSlots(), base_s::bEquipment, baseBuildingTile_s::blocked, baseBuildingTile_s::building, ccs_s::buildings, building_s::buildingStatus, building_s::buildTime, ccs, Com_GetConstIntFromNamespace(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), base_s::founded, building_s::idx, base_s::idx, base_s::lasers, building_s::level, base_s::map, MAX_BASE_SLOT, MAX_BUILDINGS, MAX_VAR, mxml_GetBool(), mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetPos2(), mxml_GetPos3(), mxml_GetString(), base_s::name, ccs_s::numBases, base_s::numBatteries, ccs_s::numBuildings, base_s::numLasers, building_s::pos, base_s::pos, Q_strncpyz(), qfalse, qtrue, base_s::radar, RADAR_Initialise(), RADAR_InitialiseUFOs(), SAVE_BASES_ALIENINTEREST, SAVE_BASES_BASE, SAVE_BASES_BASESTATUS, SAVE_BASES_BATTERIES, SAVE_BASES_BLOCKED, SAVE_BASES_BUILDING, SAVE_BASES_BUILDING_PLACE, SAVE_BASES_BUILDINGBUILDTIME, SAVE_BASES_BUILDINGINDEX, SAVE_BASES_BUILDINGLEVEL, SAVE_BASES_BUILDINGS, SAVE_BASES_BUILDINGSPACE, SAVE_BASES_BUILDINGSTATUS, SAVE_BASES_BUILDINGTIMESTART, SAVE_BASES_BUILDINGTYPE, SAVE_BASES_CURRENTAIRCRAFTIDX, SAVE_BASES_LASERS, SAVE_BASES_NAME, SAVE_BASES_POS, SAVE_BASES_RADARRANGE, SAVE_BASES_STORAGE, SAVE_BASES_TRACKINGRANGE, SAVE_BASES_X, SAVE_BASES_Y, SAVE_BASESTATUS_NAMESPACE, SAVE_BUILDINGSTATUS_NAMESPACE, saveBaseConstants, base_s::storage, and building_s::timeStart.
Referenced by SAV_Init().
void B_PostLoadInit | ( | void | ) |
Set the capacity stuff for all the bases after loading a savegame.
Definition at line 2867 of file cp_base.c.
References B_PostLoadInitCapacity().
Referenced by SAV_GameActionsAfterLoad().
qboolean B_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for saving in xml format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 2750 of file cp_base.c.
References AIR_GetAircraftIDXInBase(), base_s::aircraftCurrent, base_s::alienInterest, B_GetBaseByIDX(), B_GetNextBuilding(), B_SaveBaseSlotsXML(), B_SaveStorageXML(), base_s::baseStatus, base_s::batteries, baseBuildingTile_s::blocked, baseBuildingTile_s::building, building_s::buildingStatus, building_s::buildTime, ccs, Com_GetConstVariable(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), base_s::founded, building_s::id, building_s::idx, base_s::idx, base_s::lasers, building_s::level, base_s::map, mxml_AddBoolValue(), mxml_AddFloat(), mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddPos2(), mxml_AddPos3(), mxml_AddString(), base_s::name, ccs_s::numBases, base_s::numBatteries, base_s::numLasers, building_s::pos, base_s::pos, qfalse, qtrue, base_s::radar, radar_s::range, SAVE_BASES_ALIENINTEREST, SAVE_BASES_BASE, SAVE_BASES_BASES, SAVE_BASES_BASESTATUS, SAVE_BASES_BATTERIES, SAVE_BASES_BLOCKED, SAVE_BASES_BUILDING, SAVE_BASES_BUILDING_PLACE, SAVE_BASES_BUILDINGBUILDTIME, SAVE_BASES_BUILDINGINDEX, SAVE_BASES_BUILDINGLEVEL, SAVE_BASES_BUILDINGS, SAVE_BASES_BUILDINGSPACE, SAVE_BASES_BUILDINGSTATUS, SAVE_BASES_BUILDINGTIMESTART, SAVE_BASES_BUILDINGTYPE, SAVE_BASES_CURRENTAIRCRAFTIDX, SAVE_BASES_LASERS, SAVE_BASES_NAME, SAVE_BASES_POS, SAVE_BASES_RADARRANGE, SAVE_BASES_STORAGE, SAVE_BASES_TRACKINGRANGE, SAVE_BASES_X, SAVE_BASES_Y, SAVE_BASESTATUS_NAMESPACE, SAVE_BUILDINGSTATUS_NAMESPACE, saveBaseConstants, base_s::storage, building_s::timeStart, building_s::tpl, and radar_s::trackingRange.
Referenced by SAV_Init().
qboolean BS_LoadXML | ( | mxml_node_t * | parent | ) |
Load callback for savegames.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 221 of file cp_market.c.
References market_s::askAircraft, market_s::askItems, market_s::autosell, market_s::bidAircraft, market_s::bidItems, ccs, Com_DropShipShortNameToID(), Com_Printf(), market_s::currentEvolutionAircraft, market_s::currentEvolutionItems, ccs_s::eMarket, objDef_s::idx, INVSH_GetItemByID(), mxml_GetBool(), mxml_GetDouble(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), market_s::numAircraft, market_s::numItems, qfalse, qtrue, SAVE_MARKET_AIRCRAFT, SAVE_MARKET_ASK, SAVE_MARKET_AUTOSELL, SAVE_MARKET_BID, SAVE_MARKET_EVO, SAVE_MARKET_ID, SAVE_MARKET_ITEM, SAVE_MARKET_MARKET, SAVE_MARKET_NUM, and type.
Referenced by SAV_Init().
qboolean BS_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 183 of file cp_market.c.
References AIRCRAFTTYPE_MAX, market_s::askAircraft, market_s::askItems, market_s::autosell, market_s::bidAircraft, market_s::bidItems, BS_IsOnMarket(), ccs, Com_DropShipTypeToShortName(), csi, market_s::currentEvolutionAircraft, market_s::currentEvolutionItems, ccs_s::eMarket, i, objDef_s::id, INVSH_GetItemByIDX(), mxml_AddBoolValue(), mxml_AddDoubleValue(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddString(), market_s::numAircraft, market_s::numItems, csi_s::numODs, qtrue, SAVE_MARKET_AIRCRAFT, SAVE_MARKET_ASK, SAVE_MARKET_AUTOSELL, SAVE_MARKET_BID, SAVE_MARKET_EVO, SAVE_MARKET_ID, SAVE_MARKET_ITEM, SAVE_MARKET_MARKET, and SAVE_MARKET_NUM.
Referenced by SAV_Init().
qboolean CP_LoadInterestsXML | ( | mxml_node_t * | parent | ) |
Load callback for savegames in XML Format.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 133 of file cp_alien_interest.c.
References ccs, Com_GetConstInt(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), ccs_s::interest, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), ccs_s::overallInterest, qfalse, qtrue, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, and saveInterestConstants.
Referenced by SAV_Init().
qboolean CP_LoadMissionsXML | ( | mxml_node_t * | parent | ) |
Load callback for savegames in XML Format.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 2017 of file cp_missions.c.
References AB_GetByIDX(), mission_s::active, AIR_AircraftGetFromIDX(), B_GetBaseByIDX(), BASE_UNDER_ATTACK, base_s::baseStatus, byte, BYTES_NONE, mission_s::category, ccs, Com_GetConstIntFromNamespace(), Com_GetMapDefinitionByID(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), CP_BasemissionIsSubvertingGovernmentMission(), mission_s::crashed, mission_s::data, date_s::day, mission_s::finalDate, mission_s::id, mission_s::idx, mission_s::initialIndividualInterest, mission_s::initialOverallInterest, INS_GetInstallationByIDX(), INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUPPLY, lengthof, LIST_Add(), mission_s::location, mission_s::mapDef, ccs_s::missions, mxml_GetBool(), mxml_GetDate(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetPos2(), mxml_GetString(), base_s::name, name, mission_s::onGeoscape, mission_s::onlose, mission_s::onwin, mission_s::pos, mission_s::posAssigned, Q_strncpyz(), qfalse, qtrue, SAVE_INTERESTCAT_NAMESPACE, SAVE_MISSIONS, SAVE_MISSIONS_ACTIVE, SAVE_MISSIONS_ALIENBASEINDEX, SAVE_MISSIONS_BASEINDEX, SAVE_MISSIONS_CATEGORY, SAVE_MISSIONS_CRASHED, SAVE_MISSIONS_CRASHED_AIRCRAFT, SAVE_MISSIONS_FINALDATE, SAVE_MISSIONS_ID, SAVE_MISSIONS_INITIALINDIVIDUALINTEREST, SAVE_MISSIONS_INITIALOVERALLINTEREST, SAVE_MISSIONS_INSTALLATIONINDEX, SAVE_MISSIONS_LOCATION, SAVE_MISSIONS_MAPDEF_ID, SAVE_MISSIONS_MAPDEFTIMES, SAVE_MISSIONS_MISSION, SAVE_MISSIONS_MISSION_IDX, SAVE_MISSIONS_ONGEOSCAPE, SAVE_MISSIONS_ONLOSE, SAVE_MISSIONS_ONWIN, SAVE_MISSIONS_POS, SAVE_MISSIONS_POSASSIGNED, SAVE_MISSIONS_STAGE, SAVE_MISSIONS_STARTDATE, SAVE_MISSIONS_UFO, SAVE_MISSIONSTAGE_NAMESPACE, saveInterestConstants, saveMissionConstants, date_s::sec, mission_s::stage, STAGE_BASE_ATTACK, STAGE_BUILD_BASE, STAGE_INTERCEPT, STAGE_MISSION_GOTO, mission_s::startDate, mapDef_s::timesAlreadyUsed, mission_s::ufo, and ccs_s::ufos.
Referenced by SAV_Init().
qboolean CP_LoadXML | ( | mxml_node_t * | parent | ) |
Load callback for savegames in XML Format.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 782 of file cp_campaign.c.
References ccs_s::aliensKilled, ccs_s::angles, ccs_s::center, ccs_s::civiliansKilled, cl_geoscape_overlay, CL_GetCampaign(), CL_UpdateCredits(), cls, Com_DPrintf(), Com_Printf(), CP_CampaignInit(), CP_LoadMapDefStatXML(), CP_UpdateXVIMapButton(), ccs_s::date, date_s::day, DEBUG_CLIENT, cvar_s::integer, MAP_Init(), mxml_GetBool(), mxml_GetDate(), mxml_GetFloat(), mxml_GetInt(), mxml_GetLong(), mxml_GetNode(), mxml_GetString(), mxmlDelete(), name, client_static_s::nextUniqueCharacterNumber, ccs_s::paid, qfalse, qtrue, radarOverlayWasSet, SAVE_CAMPAIGN_ALIENSKILLED, SAVE_CAMPAIGN_ANGLES0, SAVE_CAMPAIGN_ANGLES1, SAVE_CAMPAIGN_CAMPAIGN, SAVE_CAMPAIGN_CENTER0, SAVE_CAMPAIGN_CENTER1, SAVE_CAMPAIGN_CIVILIANSKILLED, SAVE_CAMPAIGN_CL_GEOSCAPE_OVERLAY, SAVE_CAMPAIGN_CREDITS, SAVE_CAMPAIGN_DATE, SAVE_CAMPAIGN_ID, SAVE_CAMPAIGN_MAP, SAVE_CAMPAIGN_MAPDEFSTAT, SAVE_CAMPAIGN_NEXTUNIQUECHARACTERNUMBER, SAVE_CAMPAIGN_PAID, SAVE_CAMPAIGN_RADAROVERLAYWASSET, SAVE_CAMPAIGN_XVISHOWMAP, SAVE_CAMPAIGN_ZOOM, date_s::sec, ccs_s::XVIShowMap, and ccs_s::zoom.
Referenced by SAV_Init().
qboolean CP_SaveInterestsXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames in XML Format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 111 of file cp_alien_interest.c.
References ccs, Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), i, ccs_s::interest, INTERESTCATEGORY_MAX, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, mxml_AddNode(), mxml_AddShort(), mxml_AddShortValue(), mxml_AddString(), ccs_s::overallInterest, qtrue, SAVE_INTERESTCAT_NAMESPACE, SAVE_INTERESTS, SAVE_INTERESTS_ID, SAVE_INTERESTS_INTEREST, SAVE_INTERESTS_LASTINCREASEDELAY, SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY, SAVE_INTERESTS_OVERALL, SAVE_INTERESTS_VAL, and saveInterestConstants.
Referenced by SAV_Init().
qboolean CP_SaveMissionsXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames in XML Format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 1937 of file cp_missions.c.
References mission_s::active, mission_s::category, ccs, Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), mission_s::crashed, mission_s::data, linkedList_s::data, date_s::day, mission_s::finalDate, mapDef_s::id, mission_s::id, alienBase_s::idx, aircraft_s::idx, installation_s::idx, base_s::idx, mission_s::idx, mission_s::initialIndividualInterest, mission_s::initialOverallInterest, INTERESTCATEGORY_BASE_ATTACK, INTERESTCATEGORY_BUILDING, INTERESTCATEGORY_INTERCEPT, INTERESTCATEGORY_RESCUE, INTERESTCATEGORY_SUPPLY, mission_s::location, mission_s::mapDef, ccs_s::missions, mxml_AddBool(), mxml_AddBoolValue(), mxml_AddDate(), mxml_AddInt(), mxml_AddNode(), mxml_AddPos2(), mxml_AddShort(), mxml_AddString(), linkedList_s::next, mission_s::onGeoscape, mission_s::onlose, mission_s::onwin, mission_s::pos, mission_s::posAssigned, qtrue, SAVE_INTERESTCAT_NAMESPACE, SAVE_MISSIONS, SAVE_MISSIONS_ACTIVE, SAVE_MISSIONS_ALIENBASEINDEX, SAVE_MISSIONS_BASEINDEX, SAVE_MISSIONS_CATEGORY, SAVE_MISSIONS_CRASHED, SAVE_MISSIONS_CRASHED_AIRCRAFT, SAVE_MISSIONS_FINALDATE, SAVE_MISSIONS_ID, SAVE_MISSIONS_INITIALINDIVIDUALINTEREST, SAVE_MISSIONS_INITIALOVERALLINTEREST, SAVE_MISSIONS_INSTALLATIONINDEX, SAVE_MISSIONS_LOCATION, SAVE_MISSIONS_MAPDEF_ID, SAVE_MISSIONS_MAPDEFTIMES, SAVE_MISSIONS_MISSION, SAVE_MISSIONS_MISSION_IDX, SAVE_MISSIONS_ONGEOSCAPE, SAVE_MISSIONS_ONLOSE, SAVE_MISSIONS_ONWIN, SAVE_MISSIONS_POS, SAVE_MISSIONS_POSASSIGNED, SAVE_MISSIONS_STAGE, SAVE_MISSIONS_STARTDATE, SAVE_MISSIONS_UFO, SAVE_MISSIONSTAGE_NAMESPACE, saveInterestConstants, saveMissionConstants, date_s::sec, mission_s::stage, STAGE_BASE_ATTACK, STAGE_INTERCEPT, STAGE_MISSION_GOTO, mission_s::startDate, mapDef_s::timesAlreadyUsed, mission_s::ufo, and ccs_s::ufos.
Referenced by SAV_Init().
qboolean CP_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames in XML Format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 872 of file cp_campaign.c.
References ccs_s::aliensKilled, ccs_s::angles, ccs_s::center, ccs_s::civiliansKilled, cl_geoscape_overlay, cls, CP_SaveMapDefStatXML(), ccs_s::credits, ccs_s::curCampaign, ccs_s::date, date_s::day, campaign_s::id, cvar_s::integer, map, mxml_AddBool(), mxml_AddDate(), mxml_AddFloat(), mxml_AddIntValue(), mxml_AddLong(), mxml_AddNode(), mxml_AddShort(), mxml_AddShortValue(), mxml_AddString(), client_static_s::nextUniqueCharacterNumber, ccs_s::paid, qfalse, qtrue, radarOverlayWasSet, SAVE_CAMPAIGN_ALIENSKILLED, SAVE_CAMPAIGN_ANGLES0, SAVE_CAMPAIGN_ANGLES1, SAVE_CAMPAIGN_CAMPAIGN, SAVE_CAMPAIGN_CENTER0, SAVE_CAMPAIGN_CENTER1, SAVE_CAMPAIGN_CIVILIANSKILLED, SAVE_CAMPAIGN_CL_GEOSCAPE_OVERLAY, SAVE_CAMPAIGN_CREDITS, SAVE_CAMPAIGN_DATE, SAVE_CAMPAIGN_ID, SAVE_CAMPAIGN_MAP, SAVE_CAMPAIGN_MAPDEFSTAT, SAVE_CAMPAIGN_NEXTUNIQUECHARACTERNUMBER, SAVE_CAMPAIGN_PAID, SAVE_CAMPAIGN_RADAROVERLAYWASSET, SAVE_CAMPAIGN_XVISHOWMAP, SAVE_CAMPAIGN_ZOOM, date_s::sec, ccs_s::XVIShowMap, and ccs_s::zoom.
Referenced by SAV_Init().
qboolean E_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for savegames in XML Format.
[in] | p | XML Node structure, where we get the information from |
Definition at line 1273 of file cp_employee.c.
References B_GetBaseByIDX(), employee_s::baseHired, employee_s::building, ccs_s::buildings, ccs, employee_s::chr, CL_LoadCharacterXML(), Com_GetConstIntFromNamespace(), Com_GetUGVByIDSilent(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), ccs_s::employees, i, base_s::idx, employee_s::idx, MAX_EMPLOYEES, mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), NAT_GetNationByID(), employee_s::nation, ccs_s::numBases, ccs_s::numEmployees, qfalse, qtrue, SAVE_EMPLOYEE_BASEHIRED, SAVE_EMPLOYEE_BUILDING, SAVE_EMPLOYEE_CHR, SAVE_EMPLOYEE_EMPLOYEE, SAVE_EMPLOYEE_EMPLOYEES, SAVE_EMPLOYEE_IDX, SAVE_EMPLOYEE_NATION, SAVE_EMPLOYEE_TYPE, SAVE_EMPLOYEE_UGV, SAVE_EMPLOYEETYPE_NAMESPACE, saveEmployeeConstants, employee_s::type, type, and employee_s::ugv.
Referenced by SAV_Init().
qboolean E_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for savegames in XML Format.
[out] | p | XML Node structure, where we write the information to |
Definition at line 1233 of file cp_employee.c.
References employee_s::baseHired, employee_s::building, employee_s::chr, CL_SaveCharacterXML(), Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), E_GetNext(), ugv_s::id, nation_s::id, building_s::idx, base_s::idx, employee_s::idx, mxml_AddInt(), mxml_AddNode(), mxml_AddString(), employee_s::nation, qtrue, SAVE_EMPLOYEE_BASEHIRED, SAVE_EMPLOYEE_BUILDING, SAVE_EMPLOYEE_CHR, SAVE_EMPLOYEE_EMPLOYEE, SAVE_EMPLOYEE_EMPLOYEES, SAVE_EMPLOYEE_IDX, SAVE_EMPLOYEE_NATION, SAVE_EMPLOYEE_TYPE, SAVE_EMPLOYEE_UGV, SAVE_EMPLOYEETYPE_NAMESPACE, saveEmployeeConstants, and employee_s::ugv.
Referenced by SAV_Init().
qboolean HOS_LoadXML | ( | mxml_node_t * | p | ) |
Saving function for hospital related data.
Definition at line 196 of file cp_hospital.c.
References qtrue.
Referenced by SAV_Init().
qboolean HOS_SaveXML | ( | mxml_node_t * | p | ) |
Saving function for hospital related data.
Definition at line 185 of file cp_hospital.c.
References qtrue.
Referenced by SAV_Init().
qboolean INS_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for savegames.
[in] | p | XML Node structure, where we get the information from |
Definition at line 576 of file cp_installation.c.
References installation_s::alienInterest, B_LoadBaseSlotsXML(), installation_s::batteries, BDEF_InitialiseInstallationSlots(), installation_s::buildStart, ccs, Com_GetConstIntFromNamespace(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), cap_maxcur_s::cur, Cvar_Set(), installation_s::founded, installation_s::idx, INS_GetInstallationByIDX(), INS_GetInstallationIDX, INS_GetInstallationTemplateFromInstallationID(), INSTALLATION_WORKING, installation_s::installationDamage, installation_s::installationStatus, installation_s::installationTemplate, cap_maxcur_s::max, MAX_INSTALLATIONS, installationTemplate_s::maxBatteries, installationTemplate_s::maxUFOsStored, mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetPos3(), mxml_GetString(), installation_s::name, installation_s::numBatteries, ccs_s::numInstallations, installation_s::pos, Q_strncpyz(), qfalse, qtrue, installation_s::radar, RADAR_Initialise(), RADAR_InitialiseUFOs(), RADAR_UpdateInstallationRadarCoverage(), installationTemplate_s::radarRange, SAVE_INSTALLATION_ALIENINTEREST, SAVE_INSTALLATION_BATTERIES, SAVE_INSTALLATION_BUILDSTART, SAVE_INSTALLATION_DAMAGE, SAVE_INSTALLATION_INSTALLATION, SAVE_INSTALLATION_INSTALLATIONS, SAVE_INSTALLATION_NAME, SAVE_INSTALLATION_NUM, SAVE_INSTALLATION_POS, SAVE_INSTALLATION_STATUS, SAVE_INSTALLATION_TEMPLATEID, SAVE_INSTALLATIONSTATUS_NAMESPACE, saveInstallationConstants, installationTemplate_s::trackingRange, installation_s::ufoCapacity, and va().
Referenced by SAV_Init().
qboolean INS_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for savegames in xml.
[out] | p | XML Node structure, where we write the information to |
Definition at line 538 of file cp_installation.c.
References installation_s::alienInterest, B_SaveBaseSlotsXML(), installation_s::batteries, installation_s::buildStart, ccs, Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), installation_s::founded, installationTemplate_s::id, INS_GetInstallationByIDX(), installation_s::installationDamage, installation_s::installationStatus, installation_s::installationTemplate, mxml_AddFloat(), mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddPos3(), mxml_AddString(), installation_s::name, installation_s::numBatteries, ccs_s::numInstallations, installation_s::pos, qtrue, SAVE_INSTALLATION_ALIENINTEREST, SAVE_INSTALLATION_BATTERIES, SAVE_INSTALLATION_BUILDSTART, SAVE_INSTALLATION_DAMAGE, SAVE_INSTALLATION_INSTALLATION, SAVE_INSTALLATION_INSTALLATIONS, SAVE_INSTALLATION_NAME, SAVE_INSTALLATION_NUM, SAVE_INSTALLATION_POS, SAVE_INSTALLATION_STATUS, SAVE_INSTALLATION_TEMPLATEID, SAVE_INSTALLATIONSTATUS_NAMESPACE, and saveInstallationConstants.
Referenced by SAV_Init().
qboolean MS_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for messages.
[in] | p | XML Node structure, where we get the information from |
No tech found drop message.
Definition at line 217 of file cp_messages.c.
References CL_GetEventMail(), Com_GetConstIntFromNamespace(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), message_s::date, date_s::day, developer, message_s::eventMail, i, cvar_s::integer, MAX_MESSAGE_TEXT, MAX_VAR, MS_AddNewMessageSound(), MS_TimestampedText(), MSG_DEBUG, MSG_EVENT, MSG_RESEARCH_FINISHED, MSG_RESEARCH_PROPOSAL, mxml_GetBool(), mxml_GetDate(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), Q_strncpyz(), qfalse, qtrue, eventMail_s::read, RS_GetTechByID(), S_SetSampleRepeatRate(), SAVE_MESSAGES_DATE, SAVE_MESSAGES_EVENTMAILID, SAVE_MESSAGES_EVENTMAILREAD, SAVE_MESSAGES_MESSAGE, SAVE_MESSAGES_MESSAGES, SAVE_MESSAGES_PEDIAID, SAVE_MESSAGES_TEXT, SAVE_MESSAGES_TITLE, SAVE_MESSAGES_TYPE, SAVE_MESSAGETYPE_NAMESPACE, saveMessageConstants, date_s::sec, message_s::timestamp, and type.
Referenced by SAV_Init().
qboolean MS_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for messages.
[out] | p | XML Node structure, where we write the information to |
Definition at line 202 of file cp_messages.c.
References MS_MessageSaveXML(), mxml_AddNode(), qtrue, and SAVE_MESSAGES_MESSAGES.
Referenced by SAV_Init().
qboolean MSO_LoadXML | ( | mxml_node_t * | p | ) |
Restores the notification and pause settings from savegame.
Definition at line 228 of file cp_messageoptions.c.
References Com_Printf(), MSO_MSTATE_REINIT, MSO_NOTIFY, MSO_PAUSE, MSO_Set(), MSO_SetMenuState(), MSO_SOUND, mxml_GetBool(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), NT_NUM_NOTIFYTYPE, nt_strings, qfalse, qtrue, SAVE_MESSAGEOPTIONS_MESSAGEOPTIONS, SAVE_MESSAGEOPTIONS_NAME, SAVE_MESSAGEOPTIONS_NOTIFY, SAVE_MESSAGEOPTIONS_PAUSE, SAVE_MESSAGEOPTIONS_SOUND, SAVE_MESSAGEOPTIONS_TYPE, and type.
Referenced by SAV_Init().
qboolean MSO_SaveXML | ( | mxml_node_t * | p | ) |
saves current notification and pause settings
Definition at line 205 of file cp_messageoptions.c.
References messageSettings_s::doNotify, messageSettings_s::doPause, messageSettings_s::doSound, mxml_AddBoolValue(), mxml_AddNode(), mxml_AddString(), NT_NUM_NOTIFYTYPE, nt_strings, qtrue, SAVE_MESSAGEOPTIONS_MESSAGEOPTIONS, SAVE_MESSAGEOPTIONS_NAME, SAVE_MESSAGEOPTIONS_NOTIFY, SAVE_MESSAGEOPTIONS_PAUSE, SAVE_MESSAGEOPTIONS_SOUND, SAVE_MESSAGEOPTIONS_TYPE, and type.
Referenced by SAV_Init().
qboolean NAT_LoadXML | ( | mxml_node_t * | p | ) |
Nation loading xml callback.
[in] | p | XML Node structure, where we get the information from |
Definition at line 230 of file cp_nation.c.
References nationInfo_s::happiness, nationInfo_s::inuse, MONTHS_PER_YEAR, mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), NAT_GetNationByID(), qfalse, qtrue, SAVE_NATION_HAPPINESS, SAVE_NATION_ID, SAVE_NATION_MONTH, SAVE_NATION_MONTH_IDX, SAVE_NATION_NATION, SAVE_NATION_NATIONS, SAVE_NATION_XVI, nation_s::stats, and nationInfo_s::xviInfection.
Referenced by SAV_Init().
qboolean NAT_SaveXML | ( | mxml_node_t * | p | ) |
Nation saving callback.
[out] | p | XML Node structure, where we write the information to |
Definition at line 196 of file cp_nation.c.
References ccs, nationInfo_s::happiness, i, nation_s::id, nationInfo_s::inuse, MONTHS_PER_YEAR, mxml_AddFloat(), mxml_AddInt(), mxml_AddNode(), mxml_AddString(), NAT_GetNationByIDX(), ccs_s::nations, ccs_s::numNations, qtrue, SAVE_NATION_HAPPINESS, SAVE_NATION_ID, SAVE_NATION_MONTH, SAVE_NATION_MONTH_IDX, SAVE_NATION_NATION, SAVE_NATION_NATIONS, SAVE_NATION_XVI, nation_s::stats, and nationInfo_s::xviInfection.
Referenced by SAV_Init().
qboolean PR_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for xml savegames.
[in] | p | XML Node structure, where we get the information from |
Definition at line 849 of file cp_produce.c.
References AIR_GetAircraft(), production_s::aircraft, production_s::amount, ccs, Com_Printf(), storedUFO_s::disassembly, production_s::idx, INVSH_GetItemByID(), production_s::item, production_queue_s::items, MAX_BASES, MAX_PRODUCTIONS, mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), ccs_s::numBases, production_queue_s::numItems, production_s::percentDone, production_s::production, ccs_s::productions, qfalse, qtrue, SAVE_PRODUCE_AIRCRAFTID, SAVE_PRODUCE_AMOUNT, SAVE_PRODUCE_ITEM, SAVE_PRODUCE_ITEMID, SAVE_PRODUCE_PERCENTDONE, SAVE_PRODUCE_PRODUCTION, SAVE_PRODUCE_QUEUE, SAVE_PRODUCE_QUEUEIDX, SAVE_PRODUCE_UFOIDX, production_s::ufo, and US_GetStoredUFOByIDX().
Referenced by SAV_Init().
qboolean PR_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for savegames in XML Format.
[out] | p | XML Node structure, where we write the information to |
Definition at line 811 of file cp_produce.c.
References production_s::aircraft, production_s::amount, ccs, i, aircraft_s::id, objDef_s::id, storedUFO_s::idx, production_s::item, production_queue_s::items, mxml_AddFloatValue(), mxml_AddInt(), mxml_AddNode(), mxml_AddString(), ccs_s::numBases, production_queue_s::numItems, production_s::percentDone, ccs_s::productions, qtrue, SAVE_PRODUCE_AIRCRAFTID, SAVE_PRODUCE_AMOUNT, SAVE_PRODUCE_ITEM, SAVE_PRODUCE_ITEMID, SAVE_PRODUCE_PERCENTDONE, SAVE_PRODUCE_PRODUCTION, SAVE_PRODUCE_QUEUE, SAVE_PRODUCE_QUEUEIDX, SAVE_PRODUCE_UFOIDX, and production_s::ufo.
Referenced by SAV_Init().
qboolean RS_LoadXML | ( | mxml_node_t * | parent | ) |
Load callback for research and technologies.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 1843 of file cp_research.c.
References B_GetBaseByIDX(), technology_s::base, Com_GetConstIntFromNamespace(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), date_s::day, technology_s::mail, technology_s::mailSent, mxml_GetBool(), mxml_GetDate(), mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), technology_s::preResearchedDate, qfalse, qtrue, techMail_s::read, technology_s::researchedDate, RS_GetTechByID(), RS_RUNNING, SAVE_RESEARCH_BASE, SAVE_RESEARCH_DATE, SAVE_RESEARCH_ID, SAVE_RESEARCH_MAIL, SAVE_RESEARCH_MAIL_ID, SAVE_RESEARCH_MAILSENT, SAVE_RESEARCH_PREDATE, SAVE_RESEARCH_RESEARCH, SAVE_RESEARCH_SCIENTISTS, SAVE_RESEARCH_STATUSCOLLECTED, SAVE_RESEARCH_STATUSRESEARCH, SAVE_RESEARCH_STATUSRESEARCHABLE, SAVE_RESEARCH_TECH, SAVE_RESEARCH_TIME, SAVE_RESEARCHSTATUS_NAMESPACE, saveResearchConstants, technology_s::scientists, date_s::sec, technology_s::statusCollected, technology_s::statusResearch, technology_s::statusResearchable, TECHMAIL_MAX, and technology_s::time.
Referenced by SAV_Init().
qboolean RS_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for research and technologies.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 1800 of file cp_research.c.
References technology_s::base, ccs, Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), date_s::day, technology_s::id, base_s::idx, technology_s::mail, technology_s::mailSent, mxml_AddBoolValue(), mxml_AddDate(), mxml_AddFloatValue(), mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddString(), ccs_s::numTechnologies, technology_s::preResearchedDate, qtrue, techMail_s::read, technology_s::researchedDate, RS_GetTechByIDX(), SAVE_RESEARCH_BASE, SAVE_RESEARCH_DATE, SAVE_RESEARCH_ID, SAVE_RESEARCH_MAIL, SAVE_RESEARCH_MAIL_ID, SAVE_RESEARCH_MAILSENT, SAVE_RESEARCH_PREDATE, SAVE_RESEARCH_RESEARCH, SAVE_RESEARCH_SCIENTISTS, SAVE_RESEARCH_STATUSCOLLECTED, SAVE_RESEARCH_STATUSRESEARCH, SAVE_RESEARCH_STATUSRESEARCHABLE, SAVE_RESEARCH_TECH, SAVE_RESEARCH_TIME, SAVE_RESEARCHSTATUS_NAMESPACE, saveResearchConstants, technology_s::scientists, date_s::sec, technology_s::statusCollected, technology_s::statusResearch, technology_s::statusResearchable, TECHMAIL_MAX, and technology_s::time.
Referenced by SAV_Init().
void SAV_Init | ( | void | ) |
Register all save-subsystems and init some cvars and commands.
Definition at line 631 of file cp_save.c.
References _, AB_LoadXML(), AB_SaveXML(), AC_LoadXML(), AC_SaveXML(), AIR_LoadXML(), AIR_SaveXML(), B_LoadXML(), B_SaveXML(), BS_LoadXML(), BS_SaveXML(), Cmd_AddCommand(), Com_Printf(), CP_LoadInterestsXML(), CP_LoadMissionsXML(), CP_LoadXML(), CP_SaveInterestsXML(), CP_SaveMissionsXML(), CP_SaveXML(), CVAR_ARCHIVE, Cvar_Get(), E_LoadXML(), E_SaveXML(), HOS_LoadXML(), HOS_SaveXML(), INS_LoadXML(), INS_SaveXML(), MS_LoadXML(), MS_SaveXML(), MSO_LoadXML(), MSO_SaveXML(), NAT_LoadXML(), NAT_SaveXML(), PR_LoadXML(), PR_SaveXML(), RS_LoadXML(), RS_SaveXML(), SAV_AddSubsystem(), SAV_GameContinue_f(), SAV_GameLoad_f(), SAV_GameQuickLoad_f(), SAV_GameQuickLoadInit_f(), SAV_GameQuickSave_f(), SAV_GameReadGameComments_f(), SAV_GameSave_f(), SAV_GameSaveNameCleanup_f(), saveSubsystemsAmount, STATS_LoadXML(), STATS_SaveXML(), TR_LoadXML(), TR_SaveXML(), US_LoadXML(), US_SaveXML(), XVI_LoadXML(), and XVI_SaveXML().
Referenced by CP_InitStartup().
qboolean SAV_QuickSave | ( | void | ) |
Quick save the current campaign.
Definition at line 558 of file cp_save.c.
References _, CL_OnBattlescape(), Com_Printf(), error(), qfalse, qtrue, and SAV_GameSave().
Referenced by B_AssembleMap(), CP_StartMissionMap(), and SAV_GameQuickSave_f().
qboolean STATS_LoadXML | ( | mxml_node_t * | parent | ) |
Load callback for savegames in XML Format.
[in] | parent | XML Node structure, where we get the information from |
Definition at line 186 of file cp_statistics.c.
References AB_GetAlienBaseNumber(), stats_s::aircraftHad, stats_s::alienBasesBuilt, stats_s::basesAttacked, stats_s::basesBuilt, ccs_s::campaignStats, ccs, Com_Printf(), stats_s::interceptions, stats_s::killedAliens, stats_s::missions, stats_s::missionsLost, stats_s::missionsWon, stats_s::moneyBases, stats_s::moneyInterceptions, stats_s::moneyResearch, stats_s::moneyWeapons, mxml_GetInt(), mxml_GetNode(), mxmlDelete(), ccs_s::numAircraft, qfalse, qtrue, stats_s::rescuedCivilians, stats_s::researchedTechnologies, SAVE_STATS_AIRCRAFTHAD, SAVE_STATS_ALIENBASESBUILT, SAVE_STATS_BASESATTACKED, SAVE_STATS_BASESBUILT, SAVE_STATS_INTERCEPTIONS, SAVE_STATS_KILLEDALIENS, SAVE_STATS_MISSIONS, SAVE_STATS_MISSIONSLOST, SAVE_STATS_MISSIONSWON, SAVE_STATS_MONEYBASES, SAVE_STATS_MONEYINTERCEPTIONS, SAVE_STATS_MONEYRESEARCH, SAVE_STATS_MONEYWEAPONS, SAVE_STATS_RESCUEDCIVILIANS, SAVE_STATS_RESEARCHEDTECHNOLOGIES, SAVE_STATS_SOLDIERSLOST, SAVE_STATS_SOLDIERSNEW, SAVE_STATS_STATS, SAVE_STATS_UFOSDETECTED, SAVE_STATS_UFOSSTORED, stats_s::soldiersLost, stats_s::soldiersNew, stats_s::ufosDetected, stats_s::ufosStored, and US_StoredUFOCount().
Referenced by SAV_Init().
qboolean STATS_SaveXML | ( | mxml_node_t * | parent | ) |
Save callback for savegames in XML Format.
[out] | parent | XML Node structure, where we write the information to |
Definition at line 154 of file cp_statistics.c.
References stats_s::aircraftHad, stats_s::alienBasesBuilt, stats_s::basesAttacked, stats_s::basesBuilt, ccs_s::campaignStats, ccs, stats_s::interceptions, stats_s::killedAliens, stats_s::missions, stats_s::missionsLost, stats_s::missionsWon, stats_s::moneyBases, stats_s::moneyInterceptions, stats_s::moneyResearch, stats_s::moneyWeapons, mxml_AddIntValue(), mxml_AddNode(), qtrue, stats_s::rescuedCivilians, stats_s::researchedTechnologies, SAVE_STATS_AIRCRAFTHAD, SAVE_STATS_ALIENBASESBUILT, SAVE_STATS_BASESATTACKED, SAVE_STATS_BASESBUILT, SAVE_STATS_INTERCEPTIONS, SAVE_STATS_KILLEDALIENS, SAVE_STATS_MISSIONS, SAVE_STATS_MISSIONSLOST, SAVE_STATS_MISSIONSWON, SAVE_STATS_MONEYBASES, SAVE_STATS_MONEYINTERCEPTIONS, SAVE_STATS_MONEYRESEARCH, SAVE_STATS_MONEYWEAPONS, SAVE_STATS_RESCUEDCIVILIANS, SAVE_STATS_RESEARCHEDTECHNOLOGIES, SAVE_STATS_SOLDIERSLOST, SAVE_STATS_SOLDIERSNEW, SAVE_STATS_STATS, SAVE_STATS_UFOSDETECTED, SAVE_STATS_UFOSSTORED, stats_s::soldiersLost, stats_s::soldiersNew, stats_s::ufosDetected, and stats_s::ufosStored.
Referenced by SAV_Init().
qboolean TR_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for xml savegames.
[in] | p | XML Node structure, where we get the information from |
Definition at line 646 of file cp_transfer.c.
References transfer_s::active, transfer_s::aircraftArray, transfer_s::alienAmount, ccs_s::alienTeams, B_GetBaseByIDX(), BYTES_NONE, ccs, Com_Printf(), date_s::day, transfer_s::destBase, E_GetEmployeeFromChrUCN(), transfer_s::employeeArray, transfer_s::event, transfer_s::hasAircraft, transfer_s::hasAliens, transfer_s::hasEmployees, transfer_s::hasItems, teamDef_s::id, employee_s::idx, objDef_s::idx, INVSH_GetItemByID(), transfer_s::itemAmount, mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), ccs_s::numAircraft, ccs_s::numAliensTD, ccs_s::numBases, ccs_s::numTransfers, qfalse, qtrue, SAVE_TRANSFER_AIRCRAFT, SAVE_TRANSFER_ALIEN, SAVE_TRANSFER_ALIENID, SAVE_TRANSFER_ALIVEAMOUNT, SAVE_TRANSFER_AMOUNT, SAVE_TRANSFER_DAY, SAVE_TRANSFER_DEADAMOUNT, SAVE_TRANSFER_DESTBASE, SAVE_TRANSFER_EMPLOYEE, SAVE_TRANSFER_ID, SAVE_TRANSFER_ITEM, SAVE_TRANSFER_ITEMID, SAVE_TRANSFER_SEC, SAVE_TRANSFER_SRCBASE, SAVE_TRANSFER_TRANSFER, SAVE_TRANSFER_TRANSFERS, SAVE_TRANSFER_UCN, date_s::sec, transfer_s::srcBase, TRANS_ALIEN_ALIVE, TRANS_ALIEN_DEAD, TRANS_LIST_EMPTY_SLOT, employee_s::transfer, ccs_s::transfers, and employee_s::type.
Referenced by SAV_Init().
qboolean TR_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for xml savegames.
[out] | p | XML Node structure, where we write the information to |
Definition at line 563 of file cp_transfer.c.
References transfer_s::aircraftArray, transfer_s::alienAmount, ccs_s::alienTeams, ccs, employee_s::chr, Com_Printf(), date_s::day, transfer_s::destBase, transfer_s::employeeArray, transfer_s::event, transfer_s::hasAircraft, transfer_s::hasAliens, transfer_s::hasEmployees, transfer_s::hasItems, teamDef_s::id, objDef_s::id, base_s::idx, INVSH_GetItemByIDX(), transfer_s::itemAmount, MAX_OBJDEFS, mxml_AddInt(), mxml_AddIntValue(), mxml_AddNode(), mxml_AddString(), ccs_s::numAircraft, ccs_s::numAliensTD, qfalse, qtrue, SAVE_TRANSFER_AIRCRAFT, SAVE_TRANSFER_ALIEN, SAVE_TRANSFER_ALIENID, SAVE_TRANSFER_ALIVEAMOUNT, SAVE_TRANSFER_AMOUNT, SAVE_TRANSFER_DAY, SAVE_TRANSFER_DEADAMOUNT, SAVE_TRANSFER_DESTBASE, SAVE_TRANSFER_EMPLOYEE, SAVE_TRANSFER_ID, SAVE_TRANSFER_ITEM, SAVE_TRANSFER_ITEMID, SAVE_TRANSFER_SEC, SAVE_TRANSFER_SRCBASE, SAVE_TRANSFER_TRANSFER, SAVE_TRANSFER_TRANSFERS, SAVE_TRANSFER_UCN, date_s::sec, transfer_s::srcBase, TR_GetNext(), TRANS_ALIEN_ALIVE, TRANS_ALIEN_DEAD, TRANS_LIST_EMPTY_SLOT, and character_s::ucn.
Referenced by SAV_Init().
qboolean US_LoadXML | ( | mxml_node_t * | p | ) |
Load callback for xml savegames.
[in] | p | XML Node structure, where we get the information from |
<
Definition at line 311 of file cp_uforecovery.c.
References AIR_GetAircraft(), storedUFO_s::arrive, ccs, CL_GetComponentsByID(), Com_GetConstIntFromNamespace(), Com_Printf(), Com_RegisterConstList(), Com_UnregisterConstList(), storedUFO_s::comp, storedUFO_s::condition, cap_maxcur_s::cur, date_s::day, storedUFO_s::disassembly, f, i, storedUFO_s::id, installation_s::idx, storedUFO_s::idx, INS_GetFoundedInstallationByIDX(), storedUFO_s::installation, LIST_Add(), cap_maxcur_s::max, MAX_INSTALLATIONS, mxml_GetDate(), mxml_GetFloat(), mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), mxml_GetString(), Q_strncpyz(), qtrue, SAVE_STOREDUFOSTATUS_NAMESPACE, SAVE_UFORECOVERY_CONDITION, SAVE_UFORECOVERY_DATE, SAVE_UFORECOVERY_INSTALLATIONIDX, SAVE_UFORECOVERY_STATUS, SAVE_UFORECOVERY_STOREDUFOS, SAVE_UFORECOVERY_UFO, SAVE_UFORECOVERY_UFOID, SAVE_UFORECOVERY_UFOIDX, saveStoredUFOConstants, date_s::sec, storedUFO_s::status, ccs_s::storedUFOs, installation_s::ufoCapacity, and storedUFO_s::ufoTemplate.
Referenced by SAV_Init().
qboolean US_SaveXML | ( | mxml_node_t * | p | ) |
Save callback for savegames in XML Format.
[out] | p | XML Node structure, where we write the information to |
Definition at line 283 of file cp_uforecovery.c.
References storedUFO_s::arrive, Com_GetConstVariable(), Com_RegisterConstList(), Com_UnregisterConstList(), storedUFO_s::condition, date_s::day, storedUFO_s::id, installation_s::idx, storedUFO_s::idx, storedUFO_s::installation, mxml_AddDate(), mxml_AddFloat(), mxml_AddInt(), mxml_AddNode(), mxml_AddString(), qtrue, SAVE_STOREDUFOSTATUS_NAMESPACE, SAVE_UFORECOVERY_CONDITION, SAVE_UFORECOVERY_DATE, SAVE_UFORECOVERY_INSTALLATIONIDX, SAVE_UFORECOVERY_STATUS, SAVE_UFORECOVERY_STOREDUFOS, SAVE_UFORECOVERY_UFO, SAVE_UFORECOVERY_UFOID, SAVE_UFORECOVERY_UFOIDX, saveStoredUFOConstants, date_s::sec, storedUFO_s::status, and US_GetNext().
Referenced by SAV_Init().
qboolean XVI_LoadXML | ( | mxml_node_t * | p | ) |
Load the XVI map from the savegame.
Definition at line 263 of file cp_xvi.c.
References CP_InitializeXVIOverlay(), CP_SetXVILevel(), level, mxml_GetInt(), mxml_GetNextNode(), mxml_GetNode(), qtrue, SAVE_XVI_ENTRY, SAVE_XVI_HEIGHT, SAVE_XVI_LEVEL, SAVE_XVI_WIDTH, SAVE_XVI_X, SAVE_XVI_XVI, and SAVE_XVI_Y.
Referenced by SAV_Init().
qboolean XVI_SaveXML | ( | mxml_node_t * | p | ) |
XVI map saving callback.
Definition at line 228 of file cp_xvi.c.
References CP_GetXVILevel(), CP_GetXVIMapDimensions(), mxml_AddInt(), mxml_AddNode(), qtrue, SAVE_XVI_ENTRY, SAVE_XVI_HEIGHT, SAVE_XVI_LEVEL, SAVE_XVI_WIDTH, SAVE_XVI_X, SAVE_XVI_XVI, and SAVE_XVI_Y.
Referenced by SAV_Init().
Definition at line 73 of file cl_main.c.
Referenced by SAV_GameContinue_f().