OpenTTD Source 20260208-master-g43af8e94d0
order_backup.h File Reference

Functions related to order backups. More...

#include "core/pool_type.hpp"
#include "group_type.h"
#include "tile_type.h"
#include "vehicle_type.h"
#include "base_consist.h"
#include "saveload/saveload.h"

Go to the source code of this file.

Data Structures

struct  OrderBackup
 Data for backing up an order of a vehicle so it can be restored after a vehicle is rebuilt in the same depot. More...

Typedefs

using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>
 Unique identifier for an order backup.
using OrderBackupPool = Pool<OrderBackup, OrderBackupID, 1>
 The pool type for order backups.
using OrderBackupPoolItem = OrderBackupPool::PoolItem<&_order_backup_pool>
 An item in the OrderBackupPool.

Variables

OrderBackupPool _order_backup_pool
 The pool with order backups.

Detailed Description

Functions related to order backups.

Definition in file order_backup.h.

Typedef Documentation

◆ OrderBackupID

using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>

Unique identifier for an order backup.

Definition at line 21 of file order_backup.h.

◆ OrderBackupPool

The pool type for order backups.

Definition at line 25 of file order_backup.h.

◆ OrderBackupPoolItem

using OrderBackupPoolItem = OrderBackupPool::PoolItem<&_order_backup_pool>

An item in the OrderBackupPool.

Definition at line 29 of file order_backup.h.