200 #define return_cmd_error(errcode) do { return CommandCost((StringID)(errcode)); } while (0) |
200 #define return_cmd_error(errcode) do { return CommandCost((StringID)(errcode)); } while (0) |
201 |
201 |
202 /* command.cpp */ |
202 /* command.cpp */ |
203 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2); |
203 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2); |
204 CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc); |
204 CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc); |
205 bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd); |
205 bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd, bool my_cmd = true); |
206 |
206 |
207 #ifdef ENABLE_NETWORK |
207 #ifdef ENABLE_NETWORK |
208 |
208 |
209 void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback); |
209 void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback); |
210 #endif /* ENABLE_NETWORK */ |
210 #endif /* ENABLE_NETWORK */ |