Prototype/PowerSwitch: Difference between revisions
Jump to navigation
Jump to search
(0.17) |
(1.1.51: Prototype/EntityWithOwner added) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithOwner}} | |||
A [[power switch]]. | |||
{{Prototype TOC|power-switch}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|power_on_animation|[[Types/Animation|Animation]]}} | |||
{{Prototype property|overlay_start|[[Types/Animation|Animation]]}} | |||
{{Prototype property|overlay_loop|[[Types/Animation|Animation]]}} | |||
{{Prototype property|led_on|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|led_off|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|overlay_start_delay|[[Types/uint8|uint8]]}} | |||
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]}} | |||
{{Prototype property|left_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]}} | |||
{{Prototype property|right_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]}} | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|wire_max_distance|[[Types/double|double]]|0|optional=true}} | |||
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}} | |||
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}} | |||
= | |||
Latest revision as of 19:27, 21 January 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/PowerSwitch
A power switch.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
power_on_animation
Type: Animation
overlay_start
Type: Animation
overlay_loop
Type: Animation
led_on
Type: Sprite
led_off
Type: Sprite
overlay_start_delay
Type: uint8
circuit_wire_connection_point
Type: WireConnectionPoint
left_wire_connection_point
Type: WireConnectionPoint
right_wire_connection_point
Type: WireConnectionPoint
Optional properties
wire_max_distance
Type: double
Default: 0
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true