summaryrefslogtreecommitdiff
path: root/src/station_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_gui.h')
-rw-r--r--src/station_gui.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/station_gui.h b/src/station_gui.h
index ac2fa2fc3..9bed30b67 100644
--- a/src/station_gui.h
+++ b/src/station_gui.h
@@ -13,6 +13,8 @@
#include "command_type.h"
#include "tilearea_type.h"
#include "window_type.h"
+#include "station_type.h"
+#include <functional>
/** Types of cargo to display for station coverage. */
@@ -25,7 +27,9 @@ enum StationCoverageType {
int DrawStationCoverageAreaText(int left, int right, int top, StationCoverageType sct, int rad, bool supplies);
void CheckRedrawStationCoverage(const Window *w);
-void ShowSelectStationIfNeeded(const CommandContainer &cmd, TileArea ta);
-void ShowSelectWaypointIfNeeded(const CommandContainer &cmd, TileArea ta);
+using StationPickerCmdProc = std::function<bool(bool test, StationID to_join)>;
+
+void ShowSelectStationIfNeeded(TileArea ta, StationPickerCmdProc proc);
+void ShowSelectWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc);
#endif /* STATION_GUI_H */