summaryrefslogtreecommitdiff
path: root/src/script/api/script_sign.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_sign.hpp')
-rw-r--r--src/script/api/script_sign.hpp10
1 files changed, 10 insertions, 0 deletions
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"
/**
@@ -60,6 +61,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.
* @pre IsValidSign(sign_id).