Change: [Script] Move GSStation::GetOwner to GSBaseStation::GetOwner (#13406)

* Add: [Script] GSBaseStation::GetOwner

Added method for Game Scripts to retrieve the owner of a basestation.

* Cleanup: [Script] Remove ScriptStation::GetOwner

Due to class inheritance, GSStation::GetOwner and GSWaypoint::GetOwner can both reach GetOwner defined at GSBaseStation.
This commit is contained in:
SamuXarick
2025-05-22 12:47:04 +01:00
committed by GitHub
parent 467f832c2f
commit 5fef32bde7
5 changed files with 17 additions and 16 deletions

View File

@@ -59,15 +59,6 @@ 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