Prototype/BurnerGenerator: Difference between revisions
(optional in template) |
(1.1.51: Prototype/EntityWithOwner added) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
An entity that produces power from a burner energy source. | An entity that produces power from a burner energy source. | ||
Line 5: | Line 5: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | {{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} |
Latest revision as of 19:26, 21 January 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/BurnerGenerator
An entity that produces power from a burner energy source.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
energy_source
Type: EnergySource
The output energy source of the generator. Any emissions specified on this energy source are ignored, they must be specified on burner
. Must be an electric energy source.
burner
Type: EnergySource
The input energy source of the generator. Must be a burner energy source.
animation
Type: Animation4Way
Plays when the generator is active. Idle animation must have the same frame count as animation.
max_power_output
Type: Energy
How much energy this generator can produce.
Optional properties
idle_animation
Type: Animation4Way
Plays when the generator is inactive. Idle animation must have the same frame count as animation.
always_draw_idle_animation
Type: bool
Default: false
Whether the idle_animation
should also play when the generator is active.
min_perceived_performance
Type: double
Default: 0.25
Animation runs at least this fast.
performance_to_sound_speedup
Type: double
Default: 0.5