Prototype/ElectricPole: Difference between revisions
(0.18.17) |
(Undo revision 189026 by CybranM (talk) max_wire_distance is control stage, maximum_wire_distance is data stage) Tag: Undo |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
An electric pole - part of the [[electric system]]. | An electric pole - part of the [[electric system]]. | ||
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|pictures|[[Types/RotatedSprite|RotatedSprite]]}} | {{Prototype property|pictures|[[Types/RotatedSprite|RotatedSprite]]}} | ||
Line 21: | Line 21: | ||
{{Prototype property|active_picture|[[Types/Sprite|Sprite]]|optional=true}} | {{Prototype property|active_picture|[[Types/Sprite|Sprite]]|optional=true}} | ||
Drawn above the <code>pictures</code> when the electric pole is connected to an electric network. | |||
{{Prototype property|maximum_wire_distance|[[Types/double|double]]|0|optional=true}} | {{Prototype property|maximum_wire_distance|[[Types/double|double]]|0|optional=true}} | ||
Line 32: | Line 33: | ||
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | {{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | ||
Drawn when the electric pole is connected to an electric network. | |||
{{Prototype property|track_coverage_during_build_by_moving|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|track_coverage_during_build_by_moving|[[Types/bool|bool]]|false|optional=true}} |
Latest revision as of 18:45, 19 April 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/ElectricPole
An electric pole - part of the electric system.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
pictures
Type: RotatedSprite
supply_area_distance
Type: double
The "radius" of this pole's supply area. Corresponds to half of the "supply area" in the item tooltip. If this is 3.5, the pole will have a 7X7 supply area.
Max value is 64.
connection_points
Type: table of WireConnectionPoint
Optional properties
radius_visualisation_picture
Type: Sprite
active_picture
Type: Sprite
Drawn above the pictures
when the electric pole is connected to an electric network.
maximum_wire_distance
Type: double
Default: 0
The maximum distance between this pole and any other connected pole - if two poles are farther apart than this, they cannot be connected together directly. Corresponds to "wire reach" in the item tooltip.
Max value is 64.
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
light
Type: LightDefinition
Drawn when the electric pole is connected to an electric network.
track_coverage_during_build_by_moving
Type: bool
Default: false