belugas@3866: /* $Id$ */ belugas@3866: belugas@6348: /** @file newgrf_cargo.h */ belugas@6348: belugas@3866: #ifndef NEWGRF_CARGO_H belugas@3866: #define NEWGRF_CARGO_H belugas@3866: belugas@3866: enum { belugas@3866: CC_NOAVAILABLE = 0, belugas@3866: CC_PASSENGERS = 1 << 0, belugas@3866: CC_MAIL = 1 << 1, belugas@3866: CC_EXPRESS = 1 << 2, belugas@3866: CC_ARMOURED = 1 << 3, belugas@3866: CC_BULK = 1 << 4, belugas@3866: CC_PIECE_GOODS = 1 << 5, belugas@3866: CC_LIQUID = 1 << 6, belugas@3866: CC_REFRIGERATED = 1 << 7, belugas@3866: }; belugas@3866: peter1138@6148: static const CargoID CT_DEFAULT = NUM_CARGO + 0; peter1138@6148: static const CargoID CT_PURCHASE = NUM_CARGO + 1; peter1138@6148: static const CargoID CT_DEFAULT_NA = NUM_CARGO + 2; belugas@3866: peter1138@6460: /* Forward declarations of structs used */ peter1138@6371: struct CargoSpec; peter1138@6460: struct GRFFile; peter1138@6365: peter1138@6365: SpriteID GetCustomCargoSprite(const CargoSpec *cs); peter1138@6365: uint16 GetCargoCallback(uint16 callback, uint32 param1, uint32 param2, const CargoSpec *cs); peter1138@6460: CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile); rubidium@7199: uint8 GetReverseCargoTranslation(CargoID cargo, const GRFFile *grffile); peter1138@6365: belugas@3866: #endif /* NEWGRF_CARGO_H */