Prototype/Generator
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Generator
A power generator, for example a steam engine.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
energy_source
Type: EnergySource
Must be an electric energy source.
horizontal_animation
Type: Animation
vertical_animation
Type: Animation
effectivity
Type: double
The effectivity of the generator with 0.5 being half as effective as a regular steam-engine generator.
Optional properties
smoke
Type: table of SmokeSource
Array of 1 or more smoke sources.
burns_fluid
Type: bool
Default: false
scale_fluid_usage
Type: bool
Default: false
Scales the generator's fluid usage to its maximum power output.
min_perceived_performance
Type: double
Default: 0.25
Animation runs at least this fast. This corresponds to the sound.
performance_to_sound_speedup
Type: double
Default: 0.5
max_power_output
Type: Energy
Mandatory if burner
is used, otherwise optional.
burner
Type: EnergySource
Must be a burner energy source.
fluid_usage_per_tick
Type: double
The number of fluid units the generator uses per tick.
Mandatory if fluid_box
is used, otherwise not read.
maximum_temperature
Type: double
Mandatory if fluid_box
is used, otherwise not read.
fluid_box
Type: FluidBox
Mandatory if burner
is not used, otherwise not read.