Merge branch 'master' into jgrpp
Remove 'byte' typedef
This commit is contained in:
@@ -39,7 +39,7 @@ enum ProductionLevels {
|
||||
* Flags to control/override the behaviour of an industry.
|
||||
* These flags are controlled by game scripts.
|
||||
*/
|
||||
enum IndustryControlFlags : byte {
|
||||
enum IndustryControlFlags : uint8_t {
|
||||
/** No flags in effect */
|
||||
INDCTL_NONE = 0,
|
||||
/** When industry production change is evaluated, rolls to decrease are ignored. */
|
||||
@@ -71,10 +71,10 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> {
|
||||
std::array<CargoID, INDUSTRY_NUM_OUTPUTS> produced_cargo{}; ///< 16 production cargo slots
|
||||
std::array<uint16_t, INDUSTRY_NUM_OUTPUTS> produced_cargo_waiting{}; ///< amount of cargo produced per cargo
|
||||
std::array<uint16_t, INDUSTRY_NUM_OUTPUTS> incoming_cargo_waiting{}; ///< incoming cargo waiting to be processed
|
||||
std::array<byte, INDUSTRY_NUM_OUTPUTS> production_rate{}; ///< production rate for each cargo
|
||||
std::array<uint8_t, INDUSTRY_NUM_OUTPUTS> production_rate{}; ///< production rate for each cargo
|
||||
std::array<uint32_t, INDUSTRY_NUM_OUTPUTS> this_month_production{}; ///< stats of this month's production per cargo
|
||||
std::array<uint32_t, INDUSTRY_NUM_OUTPUTS> this_month_transported{}; ///< stats of this month's transport per cargo
|
||||
std::array<byte, INDUSTRY_NUM_OUTPUTS> last_month_pct_transported{}; ///< percentage transported per cargo in the last full month
|
||||
std::array<uint8_t, INDUSTRY_NUM_OUTPUTS> last_month_pct_transported{}; ///< percentage transported per cargo in the last full month
|
||||
std::array<uint32_t, INDUSTRY_NUM_OUTPUTS> last_month_production{}; ///< total units produced per cargo in the last full month
|
||||
std::array<uint32_t, INDUSTRY_NUM_OUTPUTS> last_month_transported{}; ///< total units transported per cargo in the last full month
|
||||
|
||||
@@ -82,17 +82,17 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> {
|
||||
mutable std::string cached_name; ///< NOSAVE: Cache of the resolved name of the industry
|
||||
|
||||
uint16_t counter; ///< used for animation and/or production (if available cargo)
|
||||
byte prod_level; ///< general production level
|
||||
uint8_t prod_level; ///< general production level
|
||||
Colours random_colour; ///< randomized colour of the industry, for display purpose
|
||||
EconTime::Year last_prod_year; ///< last year of production
|
||||
byte was_cargo_delivered; ///< flag that indicate this has been the closest industry chosen for cargo delivery by a station. see DeliverGoodsToIndustry
|
||||
uint8_t was_cargo_delivered; ///< flag that indicate this has been the closest industry chosen for cargo delivery by a station. see DeliverGoodsToIndustry
|
||||
IndustryControlFlags ctlflags; ///< flags overriding standard behaviours
|
||||
|
||||
PartOfSubsidy part_of_subsidy; ///< NOSAVE: is this industry a source/destination of a subsidy?
|
||||
|
||||
Owner founder; ///< Founder of the industry
|
||||
uint8_t construction_type; ///< Way the industry was constructed (@see IndustryConstructionType)
|
||||
byte selected_layout; ///< Which tile layout was used when creating the industry
|
||||
uint8_t selected_layout; ///< Which tile layout was used when creating the industry
|
||||
Owner exclusive_supplier; ///< Which company has exclusive rights to deliver cargo (INVALID_OWNER = anyone)
|
||||
Owner exclusive_consumer; ///< Which company has exclusive rights to take cargo (INVALID_OWNER = anyone)
|
||||
EconTime::Date last_cargo_accepted_at[INDUSTRY_NUM_INPUTS]; ///< Last day each cargo type was accepted by this industry
|
||||
@@ -236,7 +236,7 @@ bool IsTileForestIndustry(TileIndex tile);
|
||||
/** Data for managing the number of industries of a single industry type. */
|
||||
struct IndustryTypeBuildData {
|
||||
uint32_t probability; ///< Relative probability of building this industry.
|
||||
byte min_number; ///< Smallest number of industries that should exist (either \c 0 or \c 1).
|
||||
uint8_t min_number; ///< Smallest number of industries that should exist (either \c 0 or \c 1).
|
||||
uint16_t target_count; ///< Desired number of industries of this type.
|
||||
uint16_t max_wait; ///< Starting number of turns to wait (copied to #wait_count).
|
||||
uint16_t wait_count; ///< Number of turns to wait before trying to build again.
|
||||
|
Reference in New Issue
Block a user