belugas@3866: /* $Id$ */ belugas@3866: glx@9505: /** @file newgrf_cargo.h */ glx@9505: 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@6474: static const CargoID CT_DEFAULT = NUM_CARGO + 0; peter1138@6474: static const CargoID CT_PURCHASE = NUM_CARGO + 1; peter1138@6474: static const CargoID CT_DEFAULT_NA = NUM_CARGO + 2; belugas@3866: rubidium@9599: /* Forward declarations of structs used */ KUDr@9543: struct CargoSpec; rubidium@9599: struct GRFFile; truelight@9517: truelight@9517: SpriteID GetCustomCargoSprite(const CargoSpec *cs); truelight@9517: uint16 GetCargoCallback(uint16 callback, uint32 param1, uint32 param2, const CargoSpec *cs); rubidium@9599: CargoID GetCargoTranslation(uint8 cargo, const GRFFile *grffile); truelight@9641: uint8 GetReverseCargoTranslation(CargoID cargo, const GRFFile *grffile); truelight@9517: belugas@3866: #endif /* NEWGRF_CARGO_H */