Add: new economy "frozen" that stops production changes and industry closures (#8282)

(cherry picked from commit c9fd85528a)
This commit is contained in:
Pavel Stupnikov
2020-12-15 01:35:07 +03:00
committed by Jonathan G Rennison
parent 488187a423
commit ba4626d450
8 changed files with 54 additions and 35 deletions

View File

@@ -15,6 +15,15 @@
typedef OverflowSafeInt64 Money;
/** Type of the game economy. */
enum EconomyType : uint8 {
ET_BEGIN = 0,
ET_ORIGINAL = 0,
ET_SMOOTH = 1,
ET_FROZEN = 2,
ET_END = 3,
};
/** Data of the economy. */
struct Economy {
Money max_loan; ///< NOSAVE: Maximum possible loan