Add: [Script] GSIndustry.GetConstructionDate() method (#11145)

(cherry picked from commit ce9305a5ee)
This commit is contained in:
Andy
2023-07-20 19:35:37 +01:00
committed by Jonathan G Rennison
parent 74c0678015
commit 7839a71d7e
3 changed files with 17 additions and 0 deletions

View File

@@ -82,6 +82,15 @@ public:
*/
static std::optional<std::string> GetName(IndustryID industry_id);
/**
* Get the construction date of an industry.
* @param industry_id The index of the industry.
* @pre IsValidIndustry(industry_id).
* @return Date the industry was constructed.
* @api -ai
*/
static ScriptDate::Date GetConstructionDate(IndustryID industry_id);
/**
* Set the custom text of an industry, shown in the GUI.
* @param industry_id The industry to set the custom text of.