(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#ifndef SCRIPT_SIGN_HPP
|
||||
#define SCRIPT_SIGN_HPP
|
||||
|
||||
#include "script_company.hpp"
|
||||
#include "script_error.hpp"
|
||||
|
||||
/**
|
||||
@@ -59,6 +60,15 @@ public:
|
||||
*/
|
||||
static char *GetName(SignID sign_id);
|
||||
|
||||
/**
|
||||
* Get the owner of a sign.
|
||||
* @param sign_id The sign to get the owner of.
|
||||
* @pre IsValidSign(sign_id).
|
||||
* @return The owner the sign has.
|
||||
* @api -ai
|
||||
*/
|
||||
static ScriptCompany::CompanyID GetOwner(SignID sign_id);
|
||||
|
||||
/**
|
||||
* Gets the location of the sign.
|
||||
* @param sign_id The sign to get the location of.
|
||||
|
Reference in New Issue
Block a user