diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:00:40 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:00:40 +0000 |
commit | d85a628dde5eed0a0a2deb0b6bc199ba939e307f (patch) | |
tree | 50edb777ea125e3d0bb8f271fa05a7a1c405f45c /src/script/api/script_station.hpp | |
parent | 3a535690d4e9aaa896a062e7b5b5454b1b07ac47 (diff) | |
download | openttd-d85a628dde5eed0a0a2deb0b6bc199ba939e307f.tar.xz |
(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)
Diffstat (limited to 'src/script/api/script_station.hpp')
-rw-r--r-- | src/script/api/script_station.hpp | 9 |
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. |