(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
This commit is contained in:
belugas
2007-02-21 02:22:43 +00:00
parent 3d581f4f89
commit 011ef28e47
4 changed files with 260 additions and 159 deletions

View File

@@ -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)