(svn r19534) -Add: Keep a list of cargo specifications sorted by cargo class / name.

This commit is contained in:
terkhen
2010-04-01 19:48:28 +00:00
parent d29c756946
commit f7327dc7d7
4 changed files with 57 additions and 0 deletions

View File

@@ -131,6 +131,10 @@ void SetupCargoForClimate(LandscapeID l);
CargoID GetCargoIDByLabel(CargoLabel cl);
CargoID GetCargoIDByBitnum(uint8 bitnum);
void InitializeSortedCargoSpecs();
extern const CargoSpec *_sorted_cargo_specs[NUM_CARGO];
extern uint8 _sorted_cargo_specs_size;
/** Does cargo \a c have cargo class \a cc?
* @param c Cargo type.
* @param cc Cargo class.