diff options
author | dP <dp@dpointer.org> | 2021-01-15 17:38:14 +0300 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-01-22 09:50:53 +0000 |
commit | bab7de6cf23dce124ef8b1e284d0d1f3996dc8b8 (patch) | |
tree | 3686edd1b3ebb285e802a8a16b79552972c0b1b4 /src/industry.h | |
parent | 4b42ecb0f64c0044786412c15fb31b3705016375 (diff) | |
download | openttd-bab7de6cf23dce124ef8b1e284d0d1f3996dc8b8.tar.xz |
Feature: Allow GameScripts to add additional text to Industry view window
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index 401051d5a..ce30114cb 100644 --- a/src/industry.h +++ b/src/industry.h @@ -33,6 +33,13 @@ enum ProductionLevels { PRODLEVEL_MAXIMUM = 0x80, ///< the industry is running at full speed }; +enum class IndustryAction : byte { + SetControlFlags = 0, ///< Set IndustryControlFlags + SetExclusiveSupplier = 1, ///< Set exclusive supplier + SetExclusiveConsumer = 2, ///< Set exclusive consumer + SetText = 3, ///< Set additional text +}; + /** * Flags to control/override the behaviour of an industry. * These flags are controlled by game scripts. @@ -91,6 +98,7 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> { byte selected_layout; ///< Which tile layout was used when creating the industry Owner exclusive_supplier; ///< Which company has exclusive rights to deliver cargo (INVALID_OWNER = anyone) Owner exclusive_consumer; ///< Which company has exclusive rights to take cargo (INVALID_OWNER = anyone) + std::string text; ///< General text with additional information. uint16 random; ///< Random value used for randomisation of all kinds of things |