Add GS methods to set inflation factors

See: #415
This commit is contained in:
Jonathan G Rennison
2022-09-05 18:49:22 +01:00
parent 81291c4ffc
commit 4b9d5a437f
3 changed files with 43 additions and 0 deletions

View File

@@ -30,6 +30,22 @@ public:
* @return Inflation factor, 16 bit fixed point.
*/
static int64 GetPaymentFactor();
/**
* Set the inflation factor for prices.
* @param factor Inflation factor, 16 bit fixed point.
* @return True, if the inflation factor was changed.
* @api -ai
*/
static bool SetPriceFactor(int64 factor);
/**
* Set the inflation factor for payments.
* @param factor Inflation factor, 16 bit fixed point.
* @return True, if the inflation factor was changed.
* @api -ai
*/
static bool SetPaymentFactor(int64 factor);
};
#endif /* SCRIPT_INFLATION_HPP */