tron@2186: /* $Id$ */ tron@2186: truelight@543: #include "stdafx.h" Darkvater@1891: #include "openttd.h" tron@2762: #include "callback_table.h" truelight@543: #include "functions.h" truelight@543: truelight@543: // If you add a callback for DoCommandP, also add the callback in here truelight@543: // see below for the full list! truelight@543: // If you don't do it, it won't work across the network!! truelight@543: truelight@543: /* aircraft_gui.c */ truelight@543: CommandCallback CcBuildAircraft; bjarni@2244: CommandCallback CcCloneAircraft; truelight@543: truelight@543: /* airport_gui.c */ truelight@543: CommandCallback CcBuildAirport; truelight@543: truelight@543: /* bridge_gui.c */ truelight@543: CommandCallback CcBuildBridge; truelight@543: truelight@543: /* dock_gui.c */ truelight@543: CommandCallback CcBuildDocks; truelight@543: CommandCallback CcBuildCanal; truelight@543: peter1138@4689: /* depot_gui.c */ peter1138@4689: CommandCallback CcCloneVehicle; peter1138@4689: truelight@543: /* main_gui.c */ truelight@543: CommandCallback CcPlaySound10; truelight@543: CommandCallback CcPlaceSign; truelight@543: CommandCallback CcTerraform; truelight@543: CommandCallback CcBuildTown; truelight@543: truelight@543: /* rail_gui.c */ truelight@543: CommandCallback CcPlaySound1E; truelight@543: CommandCallback CcRailDepot; truelight@543: CommandCallback CcStation; truelight@543: CommandCallback CcBuildRailTunnel; truelight@543: truelight@543: /* road_gui.c */ truelight@543: CommandCallback CcPlaySound1D; truelight@543: CommandCallback CcBuildRoadTunnel; truelight@543: CommandCallback CcRoadDepot; truelight@543: truelight@543: /* roadveh_gui.c */ truelight@543: CommandCallback CcBuildRoadVeh; bjarni@2244: CommandCallback CcCloneRoadVeh; truelight@543: truelight@543: /* ship_gui.c */ truelight@543: CommandCallback CcBuildShip; bjarni@2244: CommandCallback CcCloneShip; truelight@543: truelight@543: /* train_gui.c */ truelight@543: CommandCallback CcBuildWagon; truelight@543: CommandCallback CcBuildLoco; bjarni@2244: CommandCallback CcCloneTrain; truelight@543: tron@3946: CommandCallback CcAI; tron@3946: truelight@543: CommandCallback *_callback_table[] = { truelight@543: /* 0x00 */ NULL, truelight@543: /* 0x01 */ CcBuildAircraft, truelight@543: /* 0x02 */ CcBuildAirport, truelight@543: /* 0x03 */ CcBuildBridge, truelight@543: /* 0x04 */ CcBuildCanal, truelight@543: /* 0x05 */ CcBuildDocks, truelight@543: /* 0x06 */ CcBuildLoco, truelight@543: /* 0x07 */ CcBuildRoadVeh, truelight@543: /* 0x08 */ CcBuildShip, truelight@543: /* 0x09 */ CcBuildTown, truelight@543: /* 0x0A */ CcBuildRoadTunnel, truelight@543: /* 0x0B */ CcBuildRailTunnel, truelight@543: /* 0x0C */ CcBuildWagon, truelight@543: /* 0x0D */ CcRoadDepot, truelight@543: /* 0x0E */ CcRailDepot, truelight@543: /* 0x0F */ CcPlaceSign, truelight@543: /* 0x10 */ CcPlaySound10, truelight@543: /* 0x11 */ CcPlaySound1D, truelight@543: /* 0x12 */ CcPlaySound1E, truelight@543: /* 0x13 */ CcStation, bjarni@2244: /* 0x14 */ CcTerraform, bjarni@2244: /* 0x15 */ CcCloneAircraft, bjarni@2244: /* 0x16 */ CcCloneRoadVeh, bjarni@2244: /* 0x17 */ CcCloneShip, bjarni@2244: /* 0x18 */ CcCloneTrain, peter1138@4689: /* 0x19 */ CcAI, peter1138@4689: /* 0x1A */ CcCloneVehicle truelight@543: }; truelight@543: tron@1568: const int _callback_table_count = lengthof(_callback_table);