summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-02-21 02:22:43 +0000
committerbelugas <belugas@openttd.org>2007-02-21 02:22:43 +0000
commit011ef28e4725180c55b9a7c4f7b1418c844c2072 (patch)
treed4e3de75d0a2b45871683afdcf9f9343ad9e036f /src/industry.h
parent3d581f4f894293f45666220de78651ba6b9a7d1c (diff)
downloadopenttd-011ef28e4725180c55b9a7c4f7b1418c844c2072.tar.xz
(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h
index a7b532381..f67ec4d2a 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -78,7 +78,13 @@ typedef struct IndustrySpec {
StringID production_down_text;
} IndustrySpec;
+typedef struct IndustryTileSpec {
+ CargoID accepts_cargo[3];
+ Slope slopes_refused;
+} IndustryTileSpec;
+
const IndustrySpec *GetIndustrySpec(IndustryType thistype);
+const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx);
DECLARE_OLD_POOL(Industry, Industry, 3, 8000)