17 |
17 |
18 // Vehicle length, returns the amount of 1/8's the vehicle is shorter |
18 // Vehicle length, returns the amount of 1/8's the vehicle is shorter |
19 // only for train vehicles |
19 // only for train vehicles |
20 CBID_TRAIN_VEHICLE_LENGTH = 0x11, |
20 CBID_TRAIN_VEHICLE_LENGTH = 0x11, |
21 |
21 |
|
22 /* Called (if appropriate bit in callback mask is set) to determine if a |
|
23 * newstation should be made available to build */ |
|
24 CBID_STATION_AVAILABILITY = 0x13, |
|
25 |
|
26 /* Called (if appropriate bit in callback mask is set) when drawing a tile |
|
27 * to choose a sprite layout to draw, instead of the standard 0-7 range */ |
|
28 CBID_STATION_SPRITE_LAYOUT = 0x14, |
|
29 |
22 // Refit capacity, the passed vehicle needs to have its ->cargo_type set to |
30 // Refit capacity, the passed vehicle needs to have its ->cargo_type set to |
23 // the cargo we are refitting to, returns the new cargo capacity |
31 // the cargo we are refitting to, returns the new cargo capacity |
24 CBID_VEHICLE_REFIT_CAPACITY = 0x15, |
32 CBID_VEHICLE_REFIT_CAPACITY = 0x15, |
25 |
33 |
26 CBID_TRAIN_ARTIC_ENGINE = 0x16, |
34 CBID_TRAIN_ARTIC_ENGINE = 0x16, |
28 CBID_TRAIN_ALLOW_WAGON_ATTACH = 0x1D, |
36 CBID_TRAIN_ALLOW_WAGON_ATTACH = 0x1D, |
29 |
37 |
30 /* This callback is called from vehicle purchase lists. It returns a value to be |
38 /* This callback is called from vehicle purchase lists. It returns a value to be |
31 * used as a custom string ID in the 0xD000 range. */ |
39 * used as a custom string ID in the 0xD000 range. */ |
32 CBID_VEHICLE_ADDITIONAL_TEXT = 0x23, |
40 CBID_VEHICLE_ADDITIONAL_TEXT = 0x23, |
|
41 |
|
42 /* Called when building a station to customize the tile layout */ |
|
43 CBID_STATION_TILE_LAYOUT = 0x24, |
33 }; |
44 }; |
34 |
45 |
35 /** |
46 /** |
36 * Callback masks for vehicles, indicates which callbacks are used by a vehicle. |
47 * Callback masks for vehicles, indicates which callbacks are used by a vehicle. |
37 * Some callbacks are always used and don't have a mask. |
48 * Some callbacks are always used and don't have a mask. |