Prototype/RailSignalBase
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/RailSignalBase
The abstract base entity for both rail signals.
Extensions
- Prototype/RailChainSignal rail-chain-signal
- Prototype/RailSignal rail-signal
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
animation
Type: RotatedAnimation
Optional properties
rail_piece
Type: Animation
green_light
Type: LightDefinition
orange_light
Type: LightDefinition
red_light
Type: LightDefinition
default_red_output_signal
Type: SignalIDConnector
default_orange_output_signal
Type: SignalIDConnector
default_green_output_signal
Type: SignalIDConnector
circuit_wire_max_distance
Type: double
Default: 0
The maximum circuit wire distance for this entity.
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
circuit_wire_connection_points
Type: table of WireConnectionPoint
Mandatory if circuit_wire_max_distance > 0.
circuit_connector_sprites
Type: table of CircuitConnectorSprites
Mandatory if circuit_wire_max_distance > 0.
Mandatory values
The collision_box of rail signals is hardcoded to {{-0.2, -0.2}, {0.2, 0.2}}.
Rail signals have additional requirements for the properties inherited from Prototype/Entity:
- The "placeable-off-grid" flag will be ignored.
- Rail signals must collide with each other, can be achieved by having the "rail-layer" collision mask layer on all rail signals.