Add: AI/GS Time Mode to choose between economy (default) and calendar time (#11603)
This commit is contained in:
@@ -200,6 +200,16 @@ ScriptObject::ActiveInstance::~ActiveInstance()
|
||||
return GetStorage()->allow_do_command;
|
||||
}
|
||||
|
||||
/* static */ void ScriptObject::SetTimeMode(bool calendar)
|
||||
{
|
||||
GetStorage()->time_mode = calendar;
|
||||
}
|
||||
|
||||
/* static */ bool ScriptObject::IsCalendarTimeMode()
|
||||
{
|
||||
return GetStorage()->time_mode;
|
||||
}
|
||||
|
||||
/* static */ void ScriptObject::SetCompany(CompanyID company)
|
||||
{
|
||||
if (GetStorage()->root_company == INVALID_OWNER) GetStorage()->root_company = company;
|
||||
|
||||
Reference in New Issue
Block a user