summaryrefslogtreecommitdiff
path: root/src/script/api/script_station.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_station.hpp')
-rw-r--r--src/script/api/script_station.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp
index becff2156..b6da4a913 100644
--- a/src/script/api/script_station.hpp
+++ b/src/script/api/script_station.hpp
@@ -60,6 +60,15 @@ public:
static bool IsValidStation(StationID station_id);
/**
+ * Get the owner of a station.
+ * @param station_id The station to get the owner of.
+ * @pre IsValidStation(station_id).
+ * @return The owner the station has.
+ * @api -ai
+ */
+ static ScriptCompany::CompanyID GetOwner(StationID station_id);
+
+ /**
* Get the StationID of a tile, if there is a station.
* @param tile The tile to find the stationID of
* @return StationID of the station.