From d85a628dde5eed0a0a2deb0b6bc199ba939e307f Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 21:00:40 +0000 Subject: (svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only) --- src/script/api/script_sign.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/script/api/script_sign.hpp') diff --git a/src/script/api/script_sign.hpp b/src/script/api/script_sign.hpp index ee235615d..9aacc409c 100644 --- a/src/script/api/script_sign.hpp +++ b/src/script/api/script_sign.hpp @@ -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. -- cgit v1.2.3-54-g00ecf