newgrf_generic.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef NEWGRF_GENERIC_H
00013 #define NEWGRF_GENERIC_H
00014
00015 enum AIConstructionEvent {
00016 AICE_TRAIN_CHECK_RAIL_ENGINE = 0x00,
00017 AICE_TRAIN_CHECK_ELRAIL_ENGINE = 0x01,
00018 AICE_TRAIN_CHECK_MONORAIL_ENGINE = 0x02,
00019 AICE_TRAIN_CHECK_MAGLEV_ENGINE = 0x03,
00020 AICE_TRAIN_GET_RAIL_WAGON = 0x08,
00021 AICE_TRAIN_GET_ELRAIL_WAGON = 0x09,
00022 AICE_TRAIN_GET_MONORAIL_WAGON = 0x0A,
00023 AICE_TRAIN_GET_MAGLEV_WAGON = 0x0B,
00024 AICE_TRAIN_GET_RAILTYPE = 0x0F,
00025
00026 AICE_ROAD_CHECK_ENGINE = 0x00,
00027 AICE_ROAD_GET_FIRST_ENGINE = 0x01,
00028 AICE_ROAD_GET_NUMBER_ENGINES = 0x02,
00029
00030 AICE_SHIP_CHECK_ENGINE = 0x00,
00031 AICE_SHIP_GET_FIRST_ENGINE = 0x01,
00032 AICE_SHIP_GET_NUMBER_ENGINES = 0x02,
00033
00034 AICE_AIRCRAFT_CHECK_ENGINE = 0x00,
00035
00036 AICE_STATION_GET_STATION_ID = 0x00,
00037 };
00038
00039 void ResetGenericCallbacks();
00040 void AddGenericCallback(uint8 feature, const struct GRFFile *file, const struct SpriteGroup *group);
00041
00042 uint16 GetAiPurchaseCallbackResult(uint8 feature, CargoID cargo_type, uint8 default_selection, IndustryType src_industry, IndustryType dst_industry, uint8 distance, AIConstructionEvent event, uint8 count, uint8 station_size, const struct GRFFile **file);
00043
00044 #endif