Prototype/ElectricPole: Difference between revisions
(Added prototype type to page) |
(0.17) |
||
Line 4: | Line 4: | ||
An electric pole - part of the [[electric system]]. Based on [[Prototype/EntityWithHealth]]. | An electric pole - part of the [[electric system]]. Based on [[Prototype/EntityWithHealth]]. | ||
== | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
=== pictures === | === pictures === | ||
'''Type''': [[Types/RotatedSprite]] | '''Type''': [[Types/RotatedSprite]] | ||
=== supply_area_distance === | |||
'''Type''': [[Types/float]] | |||
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. | |||
== Optional properties == | |||
=== radius_visualisation_picture === | === radius_visualisation_picture === | ||
Line 15: | Line 24: | ||
=== maximum_wire_distance === | === maximum_wire_distance === | ||
'''Type''': [[Types/double]] | '''Type''': [[Types/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. | 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. | ||
Line 20: | Line 31: | ||
Max value is 64. | Max value is 64. | ||
=== | === active_picture === | ||
'''Type''': [[Types/ | '''Type''': [[Types/Sprite]] | ||
=== light === | |||
'''Type''': [[Types/LightDefinition]] | |||
=== track_coverage_during_build_by_moving === | === track_coverage_during_build_by_moving === | ||
'''Type''': [[Types/bool]] | '''Type''': [[Types/bool]] | ||
'''Default''': false | |||
=== connection_points === | === connection_points === |
Revision as of 13:50, 27 March 2019
Basics
Prototype type: electric-pole
An electric pole - part of the electric system. Based on Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
pictures
Type: Types/RotatedSprite
supply_area_distance
Type: Types/float
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.
Optional properties
radius_visualisation_picture
Type: Types/Sprite
maximum_wire_distance
Type: Types/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.
active_picture
Type: Types/Sprite
light
Type: Types/LightDefinition
track_coverage_during_build_by_moving
Type: Types/bool
Default: false
connection_points
Type: Types/table of Types/WireConnectionPoint
draw_copper_wires
Type: Types/bool
Default: true
draw_circuit_wires
Type: Types/bool
Default: true