(svn r9236) -Codechange: Add 'town effect' attribute to cargo types. This will be used to specify how the cargo behaves wrt towns, instead of relying on fixed cargo IDs.

This commit is contained in:
peter1138
2007-03-15 22:48:46 +00:00
parent 78b4c42f17
commit 99577265de
2 changed files with 43 additions and 34 deletions

View File

@@ -8,6 +8,15 @@
typedef uint32 CargoLabel;
enum TownEffect {
TE_NONE,
TE_PASSENGERS,
TE_MAIL,
TE_GOODS,
TE_WATER,
TE_FOOD,
};
struct CargoSpec {
uint8 bitnum;
@@ -20,7 +29,7 @@ struct CargoSpec {
uint8 transit_days[2];
bool is_freight;
uint8 substitutetowngrowth;
TownEffect town_effect; ///< The effect this cargo type has on towns
uint16 multipliertowngrowth;
uint8 callbackflags;