Module content.gui.main.industry_util🔗
global record IndustryUtil
getPersonCapacityBoostProgress: function(Engine.Entity): number isPersonCapacityBoosted: function(Engine.Entity): boolean getPersonCapacityBoost: function(Engine.Entity): number isEntityBoosted: function(integer, Engine.Entity, boolean): boolean getIndustryBoost: function(Engine.Entity, boolean, integer): IndustryBoostgetStockListInputOutputData: function(Engine.Entity, boolean, boolean, integer): {StockListCargoData} getIndustryProductionData: function(Engine.Entity, boolean, boolean, integer, boolean): ProductionData getSatellitesNumAndMax: function(Engine.Entity): SatellitesNumAndMaxrecord StockListCargoData
cargoType: CargoTypeId rulesData: {RuleInputOutputIndex} endrecord RuleInputOutputIndex
ruleIndex: integer inputOutputIndex: integer onlyOutputFraction: number endrecord RuleInputOutputCargoParams
entity: Engine.Entity ruleNumber: integer isInput: boolean index: integer isIndustry: boolean onlyOneProductionLine: boolean endcreateInputOutputData: function(RuleInputOutputCargoParams): RuleInputOutputData getNumCargosOfRule: function(Engine.Entity, integer, boolean): integer getSortedOutputCargoTypes: function(Engine.Entity): {CargoTypeId} calcAnnualShipment: function(Engine.Entity): integer isIndustryConnected: function(Engine.Entity): boolean removeIndustries: function({Engine.Entity}, function(boolean), boolean) forEachMatchingStocklist: function(Engine.Component.StockList, StockListType, function(Engine.Entity, CargoTypeId)): {CargoTypeId : boolean} getFailedExpansionTriangles: function(Proposal, {integer}): {{Vec2f, Vec2f, Vec2f}} forEachTownSupplier: function(Engine.Entity, function(Engine.Entity, CargoTypeId)) endrecord RuleInputOutputData
plotsInput: boolean cargoType: CargoTypeId count: integer boostFractionOutputText: string adjustedIndex: integer fraction: number end
Category: globals🔗
IndustryUtil🔗
global record IndustryUtil
getPersonCapacityBoostProgress: function(Engine.Entity): number isPersonCapacityBoosted: function(Engine.Entity): boolean getPersonCapacityBoost: function(Engine.Entity): number isEntityBoosted: function(integer, Engine.Entity, boolean): boolean getIndustryBoost: function(Engine.Entity, boolean, integer): IndustryBoostgetStockListInputOutputData: function(Engine.Entity, boolean, boolean, integer): {StockListCargoData} getIndustryProductionData: function(Engine.Entity, boolean, boolean, integer, boolean): ProductionData getSatellitesNumAndMax: function(Engine.Entity): SatellitesNumAndMaxrecord StockListCargoData
cargoType: CargoTypeId rulesData: {RuleInputOutputIndex} endrecord RuleInputOutputIndex
ruleIndex: integer inputOutputIndex: integer onlyOutputFraction: number endrecord RuleInputOutputCargoParams
entity: Engine.Entity ruleNumber: integer isInput: boolean index: integer isIndustry: boolean onlyOneProductionLine: boolean endcreateInputOutputData: function(RuleInputOutputCargoParams): RuleInputOutputData getNumCargosOfRule: function(Engine.Entity, integer, boolean): integer getSortedOutputCargoTypes: function(Engine.Entity): {CargoTypeId} calcAnnualShipment: function(Engine.Entity): integer isIndustryConnected: function(Engine.Entity): boolean removeIndustries: function({Engine.Entity}, function(boolean), boolean) forEachMatchingStocklist: function(Engine.Component.StockList, StockListType, function(Engine.Entity, CargoTypeId)): {CargoTypeId : boolean} getFailedExpansionTriangles: function(Proposal, {integer}): {{Vec2f, Vec2f, Vec2f}} forEachTownSupplier: function(Engine.Entity, function(Engine.Entity, CargoTypeId)) endrecord RuleInputOutputData
plotsInput: boolean cargoType: CargoTypeId count: integer boostFractionOutputText: string adjustedIndex: integer fraction: number end
IndustryUtil.getPersonCapacityBoostProgress🔗
function IndustryUtil.getPersonCapacityBoostProgress(Engine.Entity): numberParameters
Engine.Entity
number
IndustryUtil.isPersonCapacityBoosted🔗
function IndustryUtil.isPersonCapacityBoosted(Engine.Entity): booleanParameters
Engine.Entity
boolean
IndustryUtil.getPersonCapacityBoost🔗
function IndustryUtil.getPersonCapacityBoost(Engine.Entity): numberParameters
Engine.Entity
number
IndustryUtil.isEntityBoosted🔗
function IndustryUtil.isEntityBoosted(integer, Engine.Entity, boolean): booleanParameters
integerEngine.Entityboolean
boolean
IndustryUtil.IndustryBoost🔗
IndustryUtil.IndustryBoost.RuleBoost🔗
IndustryUtil.IndustryBoost.RuleBoost.boosted🔗
IndustryUtil.IndustryBoost.RuleBoost.boosted: boolean
IndustryUtil.IndustryBoost.RuleBoost.boostFactor🔗
IndustryUtil.IndustryBoost.RuleBoost.boostFactor: number
IndustryUtil.IndustryBoost.boost🔗
IndustryUtil.IndustryBoost.boost: number
IndustryUtil.IndustryBoost.ruleBoosts🔗
IndustryUtil.IndustryBoost.ruleBoosts: {integer : RuleBoost}
IndustryUtil.getIndustryBoost🔗
function IndustryUtil.getIndustryBoost(Engine.Entity, boolean, integer): IndustryBoostParameters
Engine.Entitybooleaninteger
IndustryBoost
IndustryUtil.StockListCargoData🔗
record IndustryUtil.StockListCargoData
cargoType: CargoTypeId rulesData: {RuleInputOutputIndex} endrecord RuleInputOutputIndex
ruleIndex: integer inputOutputIndex: integer onlyOutputFraction: number end
IndustryUtil.StockListCargoData.RuleInputOutputIndex🔗
record IndustryUtil.StockListCargoData.RuleInputOutputIndex
ruleIndex: integer inputOutputIndex: integer onlyOutputFraction: number end
IndustryUtil.StockListCargoData.RuleInputOutputIndex.ruleIndex🔗
IndustryUtil.StockListCargoData.RuleInputOutputIndex.ruleIndex: integer
IndustryUtil.StockListCargoData.RuleInputOutputIndex.inputOutputIndex🔗
IndustryUtil.StockListCargoData.RuleInputOutputIndex.inputOutputIndex: integer
IndustryUtil.StockListCargoData.RuleInputOutputIndex.onlyOutputFraction🔗
IndustryUtil.StockListCargoData.RuleInputOutputIndex.onlyOutputFraction: number
IndustryUtil.StockListCargoData.cargoType🔗
IndustryUtil.StockListCargoData.cargoType: CargoTypeId
IndustryUtil.StockListCargoData.rulesData🔗
IndustryUtil.StockListCargoData.rulesData: {RuleInputOutputIndex}
IndustryUtil.getStockListInputOutputData🔗
function IndustryUtil.getStockListInputOutputData(Engine.Entity, boolean, boolean, integer): {StockListCargoData}Parameters
Engine.Entitybooleanbooleaninteger
{StockListCargoData}
IndustryUtil.ProductionData🔗
IndustryUtil.ProductionData.cargoTypeId🔗
IndustryUtil.ProductionData.cargoTypeId: CargoTypeId
IndustryUtil.ProductionData.actual🔗
IndustryUtil.ProductionData.actual: number
IndustryUtil.ProductionData.total🔗
IndustryUtil.ProductionData.total: number
IndustryUtil.getIndustryProductionData🔗
function IndustryUtil.getIndustryProductionData(Engine.Entity, boolean, boolean, integer, boolean): ProductionDataParameters
Engine.Entitybooleanbooleanintegerboolean
ProductionData
IndustryUtil.SatellitesNumAndMax🔗
IndustryUtil.SatellitesNumAndMax.numSatellites🔗
IndustryUtil.SatellitesNumAndMax.numSatellites: integer
IndustryUtil.SatellitesNumAndMax.maxSatellites🔗
IndustryUtil.SatellitesNumAndMax.maxSatellites: integer
IndustryUtil.getSatellitesNumAndMax🔗
function IndustryUtil.getSatellitesNumAndMax(Engine.Entity): SatellitesNumAndMaxParameters
Engine.Entity
SatellitesNumAndMax
IndustryUtil.RuleInputOutputCargoParams🔗
record IndustryUtil.RuleInputOutputCargoParams
entity: Engine.Entity ruleNumber: integer isInput: boolean index: integer isIndustry: boolean onlyOneProductionLine: boolean end
IndustryUtil.RuleInputOutputCargoParams.entity🔗
IndustryUtil.RuleInputOutputCargoParams.entity: Engine.Entity
IndustryUtil.RuleInputOutputCargoParams.ruleNumber🔗
IndustryUtil.RuleInputOutputCargoParams.ruleNumber: integer
IndustryUtil.RuleInputOutputCargoParams.isInput🔗
IndustryUtil.RuleInputOutputCargoParams.isInput: boolean
IndustryUtil.RuleInputOutputCargoParams.index🔗
IndustryUtil.RuleInputOutputCargoParams.index: integer
IndustryUtil.RuleInputOutputCargoParams.isIndustry🔗
IndustryUtil.RuleInputOutputCargoParams.isIndustry: boolean
IndustryUtil.RuleInputOutputCargoParams.onlyOneProductionLine🔗
IndustryUtil.RuleInputOutputCargoParams.onlyOneProductionLine: boolean
IndustryUtil.RuleInputOutputData🔗
record IndustryUtil.RuleInputOutputData
plotsInput: boolean cargoType: CargoTypeId count: integer boostFractionOutputText: string adjustedIndex: integer fraction: number end
IndustryUtil.RuleInputOutputData.plotsInput🔗
IndustryUtil.RuleInputOutputData.plotsInput: boolean
IndustryUtil.RuleInputOutputData.cargoType🔗
IndustryUtil.RuleInputOutputData.cargoType: CargoTypeId
IndustryUtil.RuleInputOutputData.count🔗
IndustryUtil.RuleInputOutputData.count: integer
IndustryUtil.RuleInputOutputData.boostFractionOutputText🔗
IndustryUtil.RuleInputOutputData.boostFractionOutputText: string
IndustryUtil.RuleInputOutputData.adjustedIndex🔗
IndustryUtil.RuleInputOutputData.adjustedIndex: integer
IndustryUtil.RuleInputOutputData.fraction🔗
IndustryUtil.RuleInputOutputData.fraction: number
IndustryUtil.createInputOutputData🔗
function IndustryUtil.createInputOutputData(RuleInputOutputCargoParams): RuleInputOutputDataParameters
RuleInputOutputCargoParams
RuleInputOutputData
IndustryUtil.getNumCargosOfRule🔗
function IndustryUtil.getNumCargosOfRule(Engine.Entity, integer, boolean): integerParameters
Engine.Entityintegerboolean
integer
IndustryUtil.getSortedOutputCargoTypes🔗
function IndustryUtil.getSortedOutputCargoTypes(Engine.Entity): {CargoTypeId}Parameters
Engine.Entity
{CargoTypeId}
IndustryUtil.calcAnnualShipment🔗
function IndustryUtil.calcAnnualShipment(Engine.Entity): integerParameters
Engine.Entity
integer
IndustryUtil.isIndustryConnected🔗
function IndustryUtil.isIndustryConnected(Engine.Entity): booleanParameters
Engine.Entity
boolean
IndustryUtil.removeIndustries🔗
function IndustryUtil.removeIndustries({Engine.Entity}, function(boolean), boolean)Parameters
{Engine.Entity}function(boolean)boolean
IndustryUtil.forEachMatchingStocklist🔗
function IndustryUtil.forEachMatchingStocklist(Engine.Component.StockList, StockListType, function(Engine.Entity, CargoTypeId)): {CargoTypeId : boolean}
return input/output cargo types (depending on argument stockListType)
ParametersEngine.Component.StockListStockListTypefunction(Engine.Entity, CargoTypeId)
{CargoTypeId : boolean}
IndustryUtil.getFailedExpansionTriangles🔗
function IndustryUtil.getFailedExpansionTriangles(Proposal, {integer}): {{Vec2f, Vec2f, Vec2f}}Parameters
Proposal{integer}
{{Vec2f, Vec2f, Vec2f}}
IndustryUtil.forEachTownSupplier🔗
function IndustryUtil.forEachTownSupplier(Engine.Entity, function(Engine.Entity, CargoTypeId))Parameters
Engine.Entityfunction(Engine.Entity, CargoTypeId)