mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 16:09:10 +00:00
Codechange: strongly type OrderBackupID
This commit is contained in:
@@ -18,11 +18,11 @@
|
||||
#include "saveload/saveload.h"
|
||||
|
||||
/** Unique identifier for an order backup. */
|
||||
typedef uint8_t OrderBackupID;
|
||||
using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>;
|
||||
struct OrderBackup;
|
||||
|
||||
/** The pool type for order backups. */
|
||||
typedef Pool<OrderBackup, OrderBackupID, 1, 256> OrderBackupPool;
|
||||
using OrderBackupPool = Pool<OrderBackup, OrderBackupID, 1, OrderBackupID::End().base()>;
|
||||
/** The pool with order backups. */
|
||||
extern OrderBackupPool _order_backup_pool;
|
||||
|
||||
|
Reference in New Issue
Block a user