src/command.h
branchnoai
changeset 9641 855e32c08c9b
parent 9629 66dde6412125
child 9694 e72987579514
equal deleted inserted replaced
9640:494df85104a3 9641:855e32c08c9b
   199 #define return_cmd_error(errcode) do { return CommandCost((StringID)(errcode)); } while (0)
   199 #define return_cmd_error(errcode) do { return CommandCost((StringID)(errcode)); } while (0)
   200 
   200 
   201 /* command.cpp */
   201 /* command.cpp */
   202 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);
   202 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);
   203 CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc);
   203 CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc);
   204 bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd);
   204 bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd, bool my_cmd = true);
   205 
   205 
   206 #ifdef ENABLE_NETWORK
   206 #ifdef ENABLE_NETWORK
   207 
   207 
   208 void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback);
   208 void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback);
   209 #endif /* ENABLE_NETWORK */
   209 #endif /* ENABLE_NETWORK */