diff options
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index d2fabf2dd..e8d5596c9 100644 --- a/src/industry.h +++ b/src/industry.h @@ -7,6 +7,7 @@ #include "oldpool.h" #include "helpers.hpp" +#include "newgrf_storage.h" typedef byte IndustryGfx; typedef uint8 IndustryType; @@ -94,6 +95,8 @@ DECLARE_OLD_POOL(Industry, Industry, 3, 8000) * Defines the internal data of a functionnal industry */ struct Industry : PoolItem<Industry, IndustryID, &_Industry_pool> { + typedef PersistentStorageArray<uint32, 16> PersistentStorage; + TileIndex xy; ///< coordinates of the primary tile the industry is built one byte width; byte height; @@ -121,6 +124,8 @@ struct Industry : PoolItem<Industry, IndustryID, &_Industry_pool> { Date last_cargo_accepted_at; ///< Last day cargo was accepted by this industry byte selected_layout; ///< Which tile layout was used when creating the industry + PersistentStorage psa; ///< Persistent storage for NewGRF industries. + Industry(TileIndex tile = 0) : xy(tile) {} ~Industry(); |