Prototype/ProgrammableSpeaker: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 10: Line 10:
'''Type''': [[Types/EnergySource]]
'''Type''': [[Types/EnergySource]]


Must be an electric energy source.
Must be an electric or void energy source.


=== energy_usage_per_tick ===
=== energy_usage_per_tick ===
Line 49: Line 49:


'''Default''': 0
'''Default''': 0
=== draw_copper_wires ===
'''Type''': [[Types/bool]]
'''Default''': true
=== draw_circuit_wires ===
'''Type''': [[Types/bool]]
'''Default''': true


=== circuit_connector_sprites ===
=== circuit_connector_sprites ===
'''Type''': [[Types/CircuitConnectorSprites]]
'''Type''': [[Types/CircuitConnectorSprites]]

Revision as of 14:32, 27 March 2019

Basics

Prototype type: programmable-speaker

Extends Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

energy_source

Type: Types/EnergySource

Must be an electric or void energy source.

energy_usage_per_tick

Type: Types/Energy

sprite

Type: Types/Sprite

maximum_polyphony

Type: Types/uint32

instruments

Type: Types/table

Array of instruments.

An instrument is a table with the following members:

A note is a table with the following members:

Optional properties

audible_distance_modifier

Type: Types/float

Default: 1

circuit_wire_connection_point

Type: Types/WireConnectionPoint

circuit_wire_max_distance

Type: Types/double

Default: 0

draw_copper_wires

Type: Types/bool

Default: true

draw_circuit_wires

Type: Types/bool

Default: true

circuit_connector_sprites

Type: Types/CircuitConnectorSprites