|
1 /* $Id$ */ |
|
2 |
|
3 #include "stdafx.h" |
|
4 #include "openttd.h" |
|
5 #include "callback_table.h" |
|
6 #include "functions.h" |
|
7 |
|
8 // If you add a callback for DoCommandP, also add the callback in here |
|
9 // see below for the full list! |
|
10 // If you don't do it, it won't work across the network!! |
|
11 |
|
12 /* aircraft_gui.c */ |
|
13 CommandCallback CcBuildAircraft; |
|
14 CommandCallback CcCloneAircraft; |
|
15 |
|
16 /* airport_gui.c */ |
|
17 CommandCallback CcBuildAirport; |
|
18 |
|
19 /* bridge_gui.c */ |
|
20 CommandCallback CcBuildBridge; |
|
21 |
|
22 /* dock_gui.c */ |
|
23 CommandCallback CcBuildDocks; |
|
24 CommandCallback CcBuildCanal; |
|
25 |
|
26 /* depot_gui.c */ |
|
27 CommandCallback CcCloneVehicle; |
|
28 |
|
29 /* main_gui.c */ |
|
30 CommandCallback CcPlaySound10; |
|
31 CommandCallback CcPlaceSign; |
|
32 CommandCallback CcTerraform; |
|
33 CommandCallback CcBuildTown; |
|
34 |
|
35 /* rail_gui.c */ |
|
36 CommandCallback CcPlaySound1E; |
|
37 CommandCallback CcRailDepot; |
|
38 CommandCallback CcStation; |
|
39 CommandCallback CcBuildRailTunnel; |
|
40 |
|
41 /* road_gui.c */ |
|
42 CommandCallback CcPlaySound1D; |
|
43 CommandCallback CcBuildRoadTunnel; |
|
44 CommandCallback CcRoadDepot; |
|
45 |
|
46 /* roadveh_gui.c */ |
|
47 CommandCallback CcBuildRoadVeh; |
|
48 CommandCallback CcCloneRoadVeh; |
|
49 |
|
50 /* ship_gui.c */ |
|
51 CommandCallback CcBuildShip; |
|
52 CommandCallback CcCloneShip; |
|
53 |
|
54 /* train_gui.c */ |
|
55 CommandCallback CcBuildWagon; |
|
56 CommandCallback CcBuildLoco; |
|
57 CommandCallback CcCloneTrain; |
|
58 |
|
59 CommandCallback CcAI; |
|
60 |
|
61 CommandCallback *_callback_table[] = { |
|
62 /* 0x00 */ NULL, |
|
63 /* 0x01 */ CcBuildAircraft, |
|
64 /* 0x02 */ CcBuildAirport, |
|
65 /* 0x03 */ CcBuildBridge, |
|
66 /* 0x04 */ CcBuildCanal, |
|
67 /* 0x05 */ CcBuildDocks, |
|
68 /* 0x06 */ CcBuildLoco, |
|
69 /* 0x07 */ CcBuildRoadVeh, |
|
70 /* 0x08 */ CcBuildShip, |
|
71 /* 0x09 */ CcBuildTown, |
|
72 /* 0x0A */ CcBuildRoadTunnel, |
|
73 /* 0x0B */ CcBuildRailTunnel, |
|
74 /* 0x0C */ CcBuildWagon, |
|
75 /* 0x0D */ CcRoadDepot, |
|
76 /* 0x0E */ CcRailDepot, |
|
77 /* 0x0F */ CcPlaceSign, |
|
78 /* 0x10 */ CcPlaySound10, |
|
79 /* 0x11 */ CcPlaySound1D, |
|
80 /* 0x12 */ CcPlaySound1E, |
|
81 /* 0x13 */ CcStation, |
|
82 /* 0x14 */ CcTerraform, |
|
83 /* 0x15 */ CcCloneAircraft, |
|
84 /* 0x16 */ CcCloneRoadVeh, |
|
85 /* 0x17 */ CcCloneShip, |
|
86 /* 0x18 */ CcCloneTrain, |
|
87 /* 0x19 */ CcAI, |
|
88 /* 0x1A */ CcCloneVehicle |
|
89 }; |
|
90 |
|
91 const int _callback_table_count = lengthof(_callback_table); |