(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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user