OpenTTD Source 20241224-master-gee860a5c8e
cargopacket_sl.cpp File Reference

Code handling saving and loading of cargo packets. More...

#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.
 
const ChunkHandlerTable _cargopacket_chunk_handlers (cargopacket_chunk_handlers)
 

Variables

static const CAPAChunkHandler CAPA
 
static const ChunkHandlerRef 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 119 of file cargopacket_sl.cpp.

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

Variable Documentation

◆ CAPA

const CAPAChunkHandler CAPA
static

Definition at line 165 of file cargopacket_sl.cpp.

◆ cargopacket_chunk_handlers

const ChunkHandlerRef cargopacket_chunk_handlers[]
static
Initial value:
= {
CAPA,
}

Definition at line 166 of file cargopacket_sl.cpp.