OpenTTD Source: src/saveload/cargopacket_sl.cpp File Reference

OpenTTD Source 13.1

Data Structures | Functions | Variables
cargopacket_sl.cpp File Reference
`#include "../stdafx.h"`
`#include "saveload.h"`
`#include "compat/cargopacket_sl_compat.h"`
`#include "../vehicle_base.h"`
`#include "../station_base.h"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | CAPAChunkHandler

## Functions
SaveLoadTable | GetCargoPacketDesc ()
| Wrapper function to get the CargoPacket's internal structure while some of the variables itself are private. More...

## Variables
static const CAPAChunkHandler | CAPA
static const ChunkHandlerRef | cargopacket_chunk_handlers []
const ChunkHandlerTable | _cargopacket_chunk_handlers (cargopacket_chunk_handlers)

## Detailed Description

Code handling saving and loading of cargo packets

Definition in file cargopacket_sl.cpp.

## Function Documentation

## ◆ GetCargoPacketDesc()

SaveLoadTable GetCargoPacketDesc | ( |  | ) |

Wrapper function to get the CargoPacket's internal structure while some of the variables itself are private.

We want this to be saved, right?

Returns
  the saveload description for CargoPackets.

Definition at line 88 of file cargopacket_sl.cpp.

References SLE_VAR.

Referenced by CAPAChunkHandler::Load(), and CAPAChunkHandler::Save().

## Variable Documentation

## ◆ cargopacket_chunk_handlers

const ChunkHandlerRef cargopacket_chunk_handlers[]
| static

Initial value:
= {
CAPA,
}

Definition at line 130 of file cargopacket_sl.cpp.