Add: AI/GS Time Mode to choose between economy (default) and calendar time (#11603)

This commit is contained in:
Tyler Trahan
2024-01-23 10:42:10 -05:00
committed by GitHub
parent a1487ce620
commit bbdbf9a589
9 changed files with 130 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ private:
class ScriptObject *mode_instance; ///< The instance belonging to the current build mode.
ScriptAsyncModeProc *async_mode; ///< The current command async mode we are in.
class ScriptObject *async_mode_instance; ///< The instance belonging to the current command async mode.
bool time_mode; ///< True if we in calendar time mode, or false (default) if we are in economy time mode.
CompanyID root_company; ///< The root company, the company that the script really belongs to.
CompanyID company; ///< The current company.
@@ -70,6 +71,7 @@ public:
mode_instance (nullptr),
async_mode (nullptr),
async_mode_instance (nullptr),
time_mode (false),
root_company (INVALID_OWNER),
company (INVALID_OWNER),
delay (1),