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

This commit is contained in:
Andy
2023-07-20 19:35:37 +01:00
committed by GitHub
parent 0be27778af
commit ce9305a5ee
3 changed files with 17 additions and 0 deletions

View File

@@ -81,6 +81,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.