(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.

This commit is contained in:
peter1138
2007-02-22 22:09:51 +00:00
parent 11f286fb74
commit 2306a02f75
12 changed files with 75 additions and 131 deletions

View File

@@ -34,9 +34,15 @@ typedef struct CargoSpec {
} CargoSpec;
extern uint32 _cargo_mask;
/* Set up the default cargo types for the given landscape type */
void SetupCargoForClimate(LandscapeID l);
/* Retrieve cargo details for the given cargo ID */
const CargoSpec *GetCargo(CargoID c);
/* Get the cargo ID of a cargo bitnum */
CargoID GetCargoIDByBitnum(byte bitnum);
#endif /* CARGOTYPE_H */