(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 1d84fb277e
commit 10b0f4a879
9 changed files with 52 additions and 0 deletions

View File

@@ -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.