(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)

This commit is contained in:
truebrain
2011-12-19 21:00:40 +00:00
parent 3a535690d4
commit d85a628dde
9 changed files with 52 additions and 0 deletions

View File

@@ -131,6 +131,15 @@ public:
*/
static char *GetName(VehicleID vehicle_id);
/**
* Get the owner of a vehicle.
* @param vehicle_id The vehicle to get the owner of.
* @pre IsValidVehicle(vehicle_id).
* @return The owner the vehicle has.
* @api -ai
*/
static ScriptCompany::CompanyID GetOwner(VehicleID vehicle_id);
/**
* Get the current location of a vehicle.
* @param vehicle_id The vehicle to get the location of.