(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)
This commit is contained in:
@@ -59,6 +59,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
|
||||
|
Reference in New Issue
Block a user