mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 23:49:35 +01:00
Codechange: strongly type OrderBackupID
This commit is contained in:
parent
cb3db3cedd
commit
d61d643906
@ -18,11 +18,11 @@
|
|||||||
#include "saveload/saveload.h"
|
#include "saveload/saveload.h"
|
||||||
|
|
||||||
/** Unique identifier for an order backup. */
|
/** Unique identifier for an order backup. */
|
||||||
typedef uint8_t OrderBackupID;
|
using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>;
|
||||||
struct OrderBackup;
|
struct OrderBackup;
|
||||||
|
|
||||||
/** The pool type for order backups. */
|
/** 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. */
|
/** The pool with order backups. */
|
||||||
extern OrderBackupPool _order_backup_pool;
|
extern OrderBackupPool _order_backup_pool;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user