ElectricEnergySource :: struct Example code
| Inherits from BaseEnergySource |
| type | :: "electric" | |
| buffer_capacity optional | :: Energy | How much energy this entity can hold. |
How much energy this entity can hold. | ||
| usage_priority | :: ElectricUsagePriority | |
| input_flow_limit optional | :: Energy | The rate at which energy can be taken, from the network, to refill the energy buffer. [...] |
The rate at which energy can be taken, from the network, to refill the energy buffer. [...] | ||
| output_flow_limit optional | :: Energy | The rate at which energy can be provided, to the network, from the energy buffer. [...] |
The rate at which energy can be provided, to the network, from the energy buffer. [...] | ||
| drain optional | :: Energy | How much energy (per second) will be continuously removed from the energy buffer. [...] |
How much energy (per second) will be continuously removed from the energy buffer. [...] | ||
| emissions_per_minute optional | :: dictionary[AirbornePollutantID → double] | The pollution an entity emits per minute at full energy consumption. [...] |
The pollution an entity emits per minute at full energy consumption. [...] | ||
| render_no_power_icon optional | :: boolean | Whether to render the "no power" icon if the entity is low on power. [...] |
Whether to render the "no power" icon if the entity is low on power. [...] | ||
| render_no_network_icon optional | :: boolean | Whether to render the "no network" icon if the entity is not connected to an electric network. |
Whether to render the "no network" icon if the entity is not connected to an electric network. | ||
Properties
buffer_capacity :: Energy optional 
Example
buffer_capacity = "5MJ"
usage_priority :: ElectricUsagePriority
Example
usage_priority = "secondary-input"
input_flow_limit :: Energy optional 
Example
input_flow_limit = "300kW"
output_flow_limit :: Energy optional 
Example
output_flow_limit = "300kW"
drain :: Energy optional 
Example
drain = "1kW"
Examples 
energy_source = -- energy source of oil pumpjack
{
type = "electric",
emissions_per_minute = { pollution = 10 },
usage_priority = "secondary-input"
}
energy_source = -- energy source of accumulator
{
type = "electric",
buffer_capacity = "5MJ",
usage_priority = "tertiary",
input_flow_limit = "300kW",
output_flow_limit = "300kW"
}
energy_source = -- energy source of steam engine
{
type = "electric",
usage_priority = "secondary-output"
}
Type used in
- AccumulatorPrototype::energy_source
- AmmoTurretPrototype::energy_source
- AsteroidCollectorPrototype::energy_source
- BeaconPrototype::energy_source
- BurnerGeneratorPrototype::energy_source
- CombinatorPrototype::energy_source
- ElectricEnergyInterfacePrototype::energy_source
- ElectricTurretPrototype::energy_source
- EnergySource
- EquipmentGhostPrototype::energy_source
- EquipmentPrototype::energy_source
- FusionGeneratorPrototype::energy_source
- FusionReactorPrototype::energy_source
- GeneratorPrototype::energy_source
- InventoryBonusEquipmentPrototype::energy_source
- LampPrototype::energy_source
- LightningAttractorPrototype::energy_source
- LoaderPrototype::energy_source
- ProgrammableSpeakerPrototype::energy_source
- RoboportPrototype::energy_source
- SolarPanelPrototype::energy_source

