diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2018-04-22 16:42:29 +0300 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2018-04-22 15:42:29 +0200 |
commit | 6ff81b908e8773c5ab94bc8a16c7d564270b0e75 (patch) | |
tree | ce2fb92a9a8044d6cdb543a998e95932e436f4e1 /src/script/api/script_company.hpp | |
parent | e0ae67cefabb1116067c0220eb9ea831a512fa06 (diff) | |
download | openttd-6ff81b908e8773c5ab94bc8a16c7d564270b0e75.tar.xz |
Feature #6459: API for querying network clients from GS (#6736)
Diffstat (limited to 'src/script/api/script_company.hpp')
-rw-r--r-- | src/script/api/script_company.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/script/api/script_company.hpp b/src/script/api/script_company.hpp index 4deaeed5e..4bfe0d02e 100644 --- a/src/script/api/script_company.hpp +++ b/src/script/api/script_company.hpp @@ -30,12 +30,13 @@ public: /** Different constants related to CompanyID. */ enum CompanyID { /* Note: these values represent part of the in-game Owner enum */ - COMPANY_FIRST = ::COMPANY_FIRST, ///< The first available company. - COMPANY_LAST = ::MAX_COMPANIES, ///< The last available company. + COMPANY_FIRST = ::COMPANY_FIRST, ///< The first available company. + COMPANY_LAST = ::MAX_COMPANIES, ///< The last available company. /* Custom added value, only valid for this API */ - COMPANY_INVALID = -1, ///< An invalid company. - COMPANY_SELF = 254, ///< Constant that gets resolved to the correct company index for your company. + COMPANY_INVALID = -1, ///< An invalid company. + COMPANY_SELF = 254, ///< Constant that gets resolved to the correct company index for your company. + COMPANY_SPECTATOR = 255, ///< Constant indicating that player is spectating (gets resolved to COMPANY_INVALID) }; /** Possible genders for company presidents. */ |