|
@@ -9,12 +9,18 @@ typedef byte IndustryGfx;
|
|
|
typedef uint8 IndustryType;
|
|
|
|
|
|
enum {
|
|
|
INVALID_INDUSTRY = 0xFFFF,
|
|
|
};
|
|
|
|
|
|
typedef enum IndustryLifeTypes {
|
|
|
INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close
|
|
|
INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production
|
|
|
INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change)
|
|
|
} IndustryLifeType;
|
|
|
|
|
|
struct Industry {
|
|
|
TileIndex xy;
|
|
|
byte width; /* swapped order of w/h with town */
|
|
|
byte height;
|
|
|
const Town* town;
|
|
|
CargoID produced_cargo[2];
|
|
@@ -59,12 +65,14 @@ typedef struct IndustrySpec {
|
|
|
byte production_rate[2];
|
|
|
/** The minimum amount of cargo transported to the stations; if the
|
|
|
* waiting cargo is less than this number, no cargo is moved to it*/
|
|
|
byte minimal_cargo;
|
|
|
CargoID accepts_cargo[3];
|
|
|
|
|
|
IndustryLifeType life_type; //this is also known as Industry production flag, in newgrf specs
|
|
|
|
|
|
StringID closure_text;
|
|
|
StringID production_up_text;
|
|
|
StringID production_down_text;
|
|
|
} IndustrySpec;
|
|
|
|
|
|
const IndustrySpec *GetIndustrySpec(IndustryType thistype);
|
|
@@ -188,13 +196,7 @@ enum {
|
|
|
IT_TOFFEE_QUARRY = 35,
|
|
|
IT_SUGAR_MINE = 36,
|
|
|
IT_END,
|
|
|
IT_INVALID = 255,
|
|
|
};
|
|
|
|
|
|
typedef enum IndustryLifeTypes {
|
|
|
INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close
|
|
|
INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production
|
|
|
INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change)
|
|
|
} IndustryLifeType;
|
|
|
|
|
|
#endif /* INDUSTRY_H */
|