Prototype/Locomotive: Difference between revisions
Jump to navigation
Jump to search
(Added prototype type to page) |
(1.1: front_light_pictures and darkness_to_render_light_animation added) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/RollingStock}} | |||
A [[locomotive]]. | |||
{{Prototype TOC|locomotive}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/RollingStock]]. | This prototype inherits all the properties from [[Prototype/RollingStock]]. | ||
{{Prototype property|max_power|[[Types/Energy|Energy]]}} | |||
{{Prototype property|reversing_power_modifier|[[Types/double|double]]}} | |||
{{Prototype property|burner or energy_source|[[Types/EnergySource|EnergySource]]}} | |||
Must be a burner energy source when using "burner", otherwise it can also be a void energy source. | |||
== Optional properties == | |||
== | {{Prototype property|front_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | ||
{{Prototype property|front_light_pictures|[[Types/RotatedSprite|RotatedSprite]]|optional=true}} | |||
{{Prototype property|darkness_to_render_light_animation|[[Types/float|float]]|0.3|optional=true}} | |||
Revision as of 16:13, 3 February 2021
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Vehicle » Prototype/RollingStock » Prototype/Locomotive
A locomotive.
Mandatory properties
This prototype inherits all the properties from Prototype/RollingStock.
max_power
Type: Energy
reversing_power_modifier
Type: double
burner or energy_source
Type: EnergySource
Must be a burner energy source when using "burner", otherwise it can also be a void energy source.
Optional properties
front_light
Type: LightDefinition
front_light_pictures
Type: RotatedSprite
darkness_to_render_light_animation
Type: float
Default: 0.3