SetDateWindow(WindowDesc*desc,WindowNumberwindow_number,Window*parent, Date initial_date, Year min_year,Yearmax_year,SetDateCallback*callback,void*callback_data):
staticconst Year PROCESSING_INDUSTRY_ABANDONMENT_YEARS=5;///< If a processing industry doesn't produce for this many consecutive years, it may close.
staticconstTimerGameCalendar::Year PROCESSING_INDUSTRY_ABANDONMENT_YEARS=5;///< If a processing industry doesn't produce for this many consecutive years, it may close.
/**
*Productionlevelmaximum,minimumanddefaultvalues.
@ -78,7 +79,7 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> {
IndustryTypetype;///< type of industry.
Ownerowner;///< owner of the industry. Which SHOULD always be (imho) OWNER_NONE
byterandom_colour;///< randomized colour of the industry, for display purpose
Year last_prod_year;///< last year of production
TimerGameCalendar::Year last_prod_year;///< last year of production
bytewas_cargo_delivered;///< flag that indicate this has been the closest industry chosen for cargo delivery by a station. see DeliverGoodsToIndustry
IndustryControlFlagsctlflags;///< flags overriding standard behaviours
@ -87,9 +88,9 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> {
mutablestd::stringcached_name;///< NOSAVE: Cache of the resolved name of the industry
Ownerfounder;///< Founder of the industry
Date construction_date;///< Date of the construction of the industry
TimerGameCalendar::Date construction_date;///< Date of the construction of the industry
uint8construction_type;///< Way the industry was constructed (@see IndustryConstructionType)
Date last_cargo_accepted_at[INDUSTRY_NUM_INPUTS];///< Last day each cargo type was accepted by this industry
TimerGameCalendar::Date last_cargo_accepted_at[INDUSTRY_NUM_INPUTS];///< Last day each cargo type was accepted by this industry
byteselected_layout;///< Which tile layout was used when creating the industry
Ownerexclusive_supplier;///< Which company has exclusive rights to deliver cargo (INVALID_OWNER = anyone)
Ownerexclusive_consumer;///< Which company has exclusive rights to take cargo (INVALID_OWNER = anyone)
uint32ref1;///< Reference 1 to some object: Used for a possible viewport, scrolling after clicking on the news, and for deleting the news when the object is deleted.
uint32ref2;///< Reference 2 to some object: Used for scrolling after clicking on the news, and for deleting the news when the object is deleted.
NewsItem*prev;///< Previous news item
NewsItem*next;///< Next news item
StringIDstring_id;///< Message text
TimerGameCalendar::Date date;///< Date of the news
NewsTypetype;///< Type of the news
NewsFlagflags;///< NewsFlags bits @see NewsFlag
NewsReferenceTypereftype1;///< Type of ref1
NewsReferenceTypereftype2;///< Type of ref2
uint32ref1;///< Reference 1 to some object: Used for a possible viewport, scrolling after clicking on the news, and for deleting the news when the object is deleted.
uint32ref2;///< Reference 2 to some object: Used for scrolling after clicking on the news, and for deleting the news when the object is deleted.
std::unique_ptr<constNewsAllocatedData>data;///< Custom data for the news item that will be deallocated (deleted) when the news item has reached its end.