(svn r22406) -Document: some more "random-ish" tidbits

This commit is contained in:
rubidium
2011-05-01 19:51:52 +00:00
parent 87272273b5
commit 6e9122828e
33 changed files with 132 additions and 20 deletions

View File

@@ -15,6 +15,9 @@
#include "saveload.h"
/**
* Savegame conversion for cargopackets.
*/
/* static */ void CargoPacket::AfterLoad()
{
if (IsSavegameVersionBefore(44)) {
@@ -101,6 +104,9 @@ const SaveLoad *GetCargoPacketDesc()
return _cargopacket_desc;
}
/**
* Save the cargo packets.
*/
static void Save_CAPA()
{
CargoPacket *cp;
@@ -111,6 +117,9 @@ static void Save_CAPA()
}
}
/**
* Load the cargo packets.
*/
static void Load_CAPA()
{
int index;
@@ -121,6 +130,7 @@ static void Load_CAPA()
}
}
/** Chunk handlers related to cargo packets. */
extern const ChunkHandler _cargopacket_chunk_handlers[] = {
{ 'CAPA', Save_CAPA, Load_CAPA, NULL, NULL, CH_ARRAY | CH_LAST},
};