Types/EnergySource: Difference between revisions
 →Electric energy source:  clarified render_no_power_icon and render_no_network_icon  | 
				 →Burner:  added fuel_category  | 
				||
| Line 48: | Line 48: | ||
=== fuel_inventory_size ===  | === fuel_inventory_size ===  | ||
Type: [[Types/InventorySize]]  | Type: [[Types/InventorySize]]  | ||
=== smoke===  | === smoke ===  | ||
Type: [[Types/SmokeSources]]  | Type: [[Types/SmokeSources]]  | ||
=== fuel_category ==  | |||
Type: [[Types/string]]  | |||
The energy source can be used with fuel from this [[Prototype/FuelCategory|fuel category]].  | |||
Revision as of 15:39, 25 October 2017
Basics
Specifies the way the entity gets its energy.
type
Type: Types/string
Only valid values are "electric" or "burner", it specifies the type of the energy source to be used.
emissions
Type: Types/double
The pollution an entity emits is emissions times the energy consumption in kW. (This gives you the number that is shown in the entiy tooltip.)
resting_consumption_ratio
Type: Types/float
Default: 1/30
Electric energy source
buffer_capacity
Type: Types/EnergyAmount
How much power the entity holds.
usage_priority
Type: Types/EnergyPriority
input_flow_limit
Type: Types/EnergyPower
How fast the energy can flow into the entity.
output_flow_limit
Type: Types/EnergyPower
How fast the energy can flow out of the entity.
render_no_power_icon
Type: Types/bool
Whether to render the 
 icon on the entity if it is low on power. Optional, default is true.
render_no_network_icon
Type: Types/bool
Whether to render the 
 icon on the entity if it is not connected to a electric network. Optional, default is true.
Burner
effectivity
Type: Types/float
Value specifying the amount of burning value of the item to be transferred into the energy. 1 means 100% effectivity. Can't be 0.
fuel_inventory_size
Type: Types/InventorySize
smoke
Type: Types/SmokeSources
= fuel_category
Type: Types/string
The energy source can be used with fuel from this fuel category.