summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-22 13:56:38 +0000
committerrubidium <rubidium@openttd.org>2007-09-22 13:56:38 +0000
commit81555c732d0718c7ceb8990012012055377a7017 (patch)
tree1f92395e697eada656f8d47222f9f227028ec271 /src/industry.h
parented96cd271123b9c9936c08b9c721afe2b4695c56 (diff)
downloadopenttd-81555c732d0718c7ceb8990012012055377a7017.tar.xz
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h5
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();