Prototype/ProgrammableSpeaker: Difference between revisions
Jump to navigation
Jump to search
(Set prototype parent) |
(Converted to SMW format) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}} | {{Prototype parent|Prototype/EntityWithHealth}} | ||
A [[programmable speaker]]. | |||
{{Prototype TOC|programmable-speaker}} | |||
Prototype | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
{{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|energy_usage_per_tick|[[Types/Energy|Energy]]}} | |||
{{Prototype property|sprite|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|maximum_polyphony|[[Types/uint32|uint32]]}} | |||
{{Prototype property|instruments|[[Types/table|table]]}} | |||
Array of ''instrument''s. | Array of ''instrument''s. | ||
An ''instrument'' is a table with the following members: | An ''instrument'' is a table with the following members: | ||
* name - [[Types/string]] - Mandatory | * name - [[Types/string|string]] - Mandatory | ||
* notes - [[Types/table]] of ''note''s - Mandatory | * notes - [[Types/table|table]] of ''note''s - Mandatory | ||
A ''note'' is a table with the following members: | A ''note'' is a table with the following members: | ||
* name - [[Types/string]] - Mandatory | * name - [[Types/string|string]] - Mandatory | ||
* sound - [[Types/Sound]] - Mandatory | * sound - [[Types/Sound|Sound]] - Mandatory | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|audible_distance_modifier|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|circuit_wire_connection_point|[[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | |||
{{Prototype property|circuit_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}} | |||
{{Prototype property|circuit_connector_sprites|[[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} | |||
Revision as of 16:52, 5 August 2019
Template:Prototype parent A programmable speaker.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
Template:Prototype property Must be an electric or void energy source.
Template:Prototype property Array of instruments.
An instrument is a table with the following members:
A note is a table with the following members: