|
OpenTTD Source 20261129-master-g72a8bdc861
|
Code handling saving and loading of orders. More...
#include "../stdafx.h"#include "saveload.h"#include "saveload_internal.h"#include "compat/order_sl_compat.h"#include "../order_backup.h"#include "../settings_type.h"#include "../vehicle_base.h"#include "../network/network.h"#include "../safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | ORDRChunkHandler |
| class | SlOrders< T > |
| struct | ORDLChunkHandler |
| struct | BKORChunkHandler |
Functions | |
| static Order | UnpackVersion4Order (uint16_t packed) |
| Unpacks a order from savegames with version 4 and lower. | |
| Order | UnpackOldOrder (uint16_t packed) |
| Unpacks a order from savegames made with TTD(Patch). | |
| SaveLoadTable | GetOrderDescription () |
| SaveLoadTable | GetOrderListDescription () |
| SaveLoadTable | GetOrderBackupDescription () |
| const ChunkHandlerTable | _order_chunk_handlers (order_chunk_handlers) |
Variables | |
| OldOrderPool | _old_order_saveload_pool |
| Temporary storage for conversion from old order pool. | |
| static const BKORChunkHandler | BKOR |
| static const ORDRChunkHandler | ORDR |
| static const ORDLChunkHandler | ORDL |
| static const ChunkHandlerRef | order_chunk_handlers [] |
Code handling saving and loading of orders.
Definition in file order_sl.cpp.
| SaveLoadTable GetOrderBackupDescription | ( | ) |
Definition at line 260 of file order_sl.cpp.
| SaveLoadTable GetOrderDescription | ( | ) |
Definition at line 112 of file order_sl.cpp.
| SaveLoadTable GetOrderListDescription | ( | ) |
Definition at line 208 of file order_sl.cpp.
| Order UnpackOldOrder | ( | uint16_t | packed | ) |
Unpacks a order from savegames made with TTD(Patch).
| packed | packed order |
Definition at line 96 of file order_sl.cpp.
References Order::IsType(), Order::MakeDummy(), and UnpackVersion4Order().
Referenced by Vehicle::LoadOldVehicle.
|
static |
Unpacks a order from savegames with version 4 and lower.
| packed | packed order |
Definition at line 86 of file order_sl.cpp.
Referenced by ORDRChunkHandler::Load(), and UnpackOldOrder().
| OldOrderPool _old_order_saveload_pool |
Temporary storage for conversion from old order pool.
Definition at line 110 of file order_sl.cpp.
Referenced by AfterLoadGame(), OrderList::AfterLoadVehiclesPhase1, BKORChunkHandler::FixPointers(), ORDLChunkHandler::FixPointers(), ORDRChunkHandler::Load(), and ResetSaveloadData().
|
static |
Definition at line 332 of file order_sl.cpp.
|
static |
Definition at line 335 of file order_sl.cpp.
|
static |
Definition at line 334 of file order_sl.cpp.
|
static |
Definition at line 333 of file order_sl.cpp.