Prototype/Combinator: Difference between revisions
(Set prototype parent) |
(1.1.51: Prototype/EntityWithOwner added) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
Abstract base type for decider and arithmetic combinators. | |||
{{Prototype TOC|''abstract''}} | |||
== Extensions == | == Extensions == | ||
Line 12: | Line 10: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | |||
Must be an electric or void energy source. | Must be an electric or void energy source. | ||
{{Prototype property|active_energy_usage|[[Types/Energy|Energy]]}} | |||
{{Prototype property|sprites|[[Types/Sprite4Way|Sprite4Way]]}} | |||
{{Prototype property|activity_led_sprites|[[Types/Sprite4Way|Sprite4Way]]}} | |||
{{Prototype property|input_connection_bounding_box|[[Types/BoundingBox|BoundingBox]]}} | |||
{{Prototype property|output_connection_bounding_box|[[Types/BoundingBox|BoundingBox]]}} | |||
{{Prototype property|activity_led_light_offsets|[[Types/table|table]] of [[Types/vector|vector]]}} | |||
Array of 4 vectors. | Array of 4 vectors. | ||
{{Prototype property|screen_light_offsets|[[Types/table|table]] of [[Types/vector|vector]]}} | |||
Array of 4 vectors. | Array of 4 vectors. | ||
{{Prototype property|input_connection_points|[[Types/table|table]] of [[Types/WireConnectionPoint|WireConnectionPoint]]}} | |||
Array of 4 WireConnectionPoints. | Array of 4 WireConnectionPoints. | ||
{{Prototype property|output_connection_points|[[Types/table|table]] of [[Types/WireConnectionPoint|WireConnectionPoint]]}} | |||
Array of 4 WireConnectionPoints. | Array of 4 WireConnectionPoints. | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|activity_led_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | |||
{{Prototype property|screen_light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | |||
{{Prototype property|activity_led_hold_time|[[Types/uint8|uint8]]|5|optional=true}} | |||
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}} | |||
The maximum circuit wire distance for this entity. | The maximum circuit wire distance for this entity. | ||
{{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:26, 21 January 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Combinator
Abstract base type for decider and arithmetic combinators.
Extensions
- Prototype/ArithmeticCombinator arithmetic-combinator
- Prototype/DeciderCombinator decider-combinator
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
energy_source
Type: EnergySource
Must be an electric or void energy source.
active_energy_usage
Type: Energy
sprites
Type: Sprite4Way
activity_led_sprites
Type: Sprite4Way
input_connection_bounding_box
Type: BoundingBox
output_connection_bounding_box
Type: BoundingBox
activity_led_light_offsets
Type: table of vector
Array of 4 vectors.
screen_light_offsets
Type: table of vector
Array of 4 vectors.
input_connection_points
Type: table of WireConnectionPoint
Array of 4 WireConnectionPoints.
output_connection_points
Type: table of WireConnectionPoint
Array of 4 WireConnectionPoints.
Optional properties
activity_led_light
Type: LightDefinition
screen_light
Type: LightDefinition
activity_led_hold_time
Type: uint8
Default: 5
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