Code handling saving and loading of Cargo monitoring. More...
#include "../stdafx.h"#include "../cargomonitor.h"#include "saveload.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... | |
Functions | |
| static void | SaveDelivery () |
| Save the _cargo_deliveries monitoring map. | |
| static void | LoadDelivery () |
| Load the _cargo_deliveries monitoring map. | |
| static void | SavePickup () |
| Save the _cargo_pickups monitoring map. | |
| static void | LoadPickup () |
| Load the _cargo_pickups monitoring map. | |
Variables | |
| static const SaveLoad | _cargomonitor_pair_desc [] |
| Description of the TempStorage structure for the purpose of load and save. | |
| const ChunkHandler | _cargomonitor_chunk_handlers [] |
| Chunk definition of the cargomonitoring maps. | |
Code handling saving and loading of Cargo monitoring.
Definition in file cargomonitor_sl.cpp.
| static void LoadDelivery | ( | ) | [static] |
Load the _cargo_deliveries monitoring map.
Definition at line 50 of file cargomonitor_sl.cpp.
References _cargo_deliveries, ClearCargoDeliveryMonitoring(), SlIterateArray(), and SlObject().
| static void LoadPickup | ( | ) | [static] |
Load the _cargo_pickups monitoring map.
Definition at line 85 of file cargomonitor_sl.cpp.
References _cargo_pickups, ClearCargoPickupMonitoring(), SlIterateArray(), and SlObject().
| static void SaveDelivery | ( | ) | [static] |
Save the _cargo_deliveries monitoring map.
Definition at line 31 of file cargomonitor_sl.cpp.
References _cargo_deliveries, and SlObject().
| static void SavePickup | ( | ) | [static] |
Save the _cargo_pickups monitoring map.
Definition at line 66 of file cargomonitor_sl.cpp.
References _cargo_pickups, and SlObject().
{
{ 'CMDL', SaveDelivery, LoadDelivery, NULL, NULL, CH_ARRAY},
{ 'CMPU', SavePickup, LoadPickup, NULL, NULL, CH_ARRAY | CH_LAST},
}
Chunk definition of the cargomonitoring maps.
const SaveLoad _cargomonitor_pair_desc[] [static] |
{
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 24 of file cargomonitor_sl.cpp.
1.7.1