equal
deleted
inserted
replaced
8 #include "macros.h" |
8 #include "macros.h" |
9 #include "string.h" |
9 #include "string.h" |
10 #include "order.h" |
10 #include "order.h" |
11 #include "rail.h" |
11 #include "rail.h" |
12 #include "airport.h" |
12 #include "airport.h" |
|
13 #include "vehicle.h" |
13 |
14 |
14 struct WindowEvent; |
15 struct WindowEvent; |
15 |
16 |
16 typedef void WindowProc(Window *w, WindowEvent *e); |
17 typedef void WindowProc(Window *w, WindowEvent *e); |
17 |
18 |
321 uint32 params[5]; |
322 uint32 params[5]; |
322 }; |
323 }; |
323 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d)); |
324 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d)); |
324 |
325 |
325 struct buildvehicle_d { |
326 struct buildvehicle_d { |
326 byte vehicle_type; |
327 VehicleType vehicle_type; |
327 union { |
328 union { |
328 RailTypeByte railtype; |
329 RailTypeByte railtype; |
329 AirportFTAClass::Flags flags; |
330 AirportFTAClass::Flags flags; |
330 } filter; |
331 } filter; |
331 byte sel_index; ///< deprecated value, used for 'unified' ship and road |
332 byte sel_index; ///< deprecated value, used for 'unified' ship and road |
350 }; |
351 }; |
351 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d)); |
352 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d)); |
352 |
353 |
353 struct depot_d { |
354 struct depot_d { |
354 VehicleID sel; |
355 VehicleID sel; |
355 byte type; |
356 VehicleType type; |
356 bool generate_list; |
357 bool generate_list; |
357 uint16 engine_list_length; |
358 uint16 engine_list_length; |
358 uint16 wagon_list_length; |
359 uint16 wagon_list_length; |
359 uint16 engine_count; |
360 uint16 engine_count; |
360 uint16 wagon_count; |
361 uint16 wagon_count; |