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

OpenTTD Source 13.1

Data Structures | Functions | Variables
cargomonitor_sl.cpp File Reference
`#include "../stdafx.h"`
`#include "saveload.h"`
`#include "compat/cargomonitor_sl_compat.h"`
`#include "../cargomonitor.h"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | TempStorage
| Temporary storage of cargo monitoring data for loading or saving it. More...
struct | CMDLChunkHandler
| _cargo_deliveries monitoring map. More...
struct | CMPUChunkHandler
| _cargo_pickups monitoring map. More...

## Functions
static CargoMonitorID | FixupCargoMonitor (CargoMonitorID number)

## Variables
static const SaveLoad | _cargomonitor_pair_desc []
| Description of the TempStorage structure for the purpose of load and save. More...
static const CMDLChunkHandler | CMDL
| Chunk definition of the cargomonitoring maps.
static const CMPUChunkHandler | CMPU
static const ChunkHandlerRef | cargomonitor_chunk_handlers []
const ChunkHandlerTable | _cargomonitor_chunk_handlers (cargomonitor_chunk_handlers)

## Detailed Description

Code handling saving and loading of Cargo monitoring.

Definition in file cargomonitor_sl.cpp.

## Variable Documentation

## ◆ _cargomonitor_pair_desc

const SaveLoad _cargomonitor_pair_desc[]
| static

Initial value:
= {
SLE_VAR(TempStorage, number, SLE_UINT32),
SLE_VAR(TempStorage, amount, SLE_UINT32),
}

Description of the TempStorage structure for the purpose of load and save.

Definition at line 26 of file cargomonitor_sl.cpp.

Referenced by CMDLChunkHandler::Load(), CMPUChunkHandler::Load(), CMDLChunkHandler::Save(), and CMPUChunkHandler::Save().

## ◆ cargomonitor_chunk_handlers

const ChunkHandlerRef cargomonitor_chunk_handlers[]
| static

Initial value:
= {
CMDL,
CMPU,
}

Definition at line 137 of file cargomonitor_sl.cpp.

TempStorage
Temporary storage of cargo monitoring data for loading or saving it.
Definition: cargomonitor_sl.cpp:20
SLE_VAR
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition: saveload.h:778
CMDL
static const CMDLChunkHandler CMDL
Chunk definition of the cargomonitoring maps.
Definition: cargomonitor_sl.cpp:135