Prototype/GeneratorEquipment: Difference between revisions
(Set prototype parent) |
(Updated styling of prototype doc migration note) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/GeneratorEquipmentPrototype.html https://lua-api.factorio.com/latest/prototypes/GeneratorEquipmentPrototype.html] | |||
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | |||
{{Prototype parent|Prototype/Equipment}} | {{Prototype parent|Prototype/Equipment}} | ||
Used by [[portable fusion reactor]]. Provides power in equipment grids. Can produce power for free or use a burner energy source. | |||
{{Prototype TOC|generator-equipment}} | |||
Prototype | |||
Extends [[Prototype/Equipment]]. | Extends [[Prototype/Equipment]]. | ||
Line 9: | Line 15: | ||
This prototype inherits all the properties from [[Prototype/Equipment]]. | This prototype inherits all the properties from [[Prototype/Equipment]]. | ||
{{Prototype property|power|[[Types/Energy|Energy]]}} | |||
The power output of this equipment. | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|burner|[[Types/EnergySource|EnergySource]]|optional=true}} | |||
Must be a burner energy source. If not defined, this equipment produces power for free. | |||
Must be a burner energy source. |
Latest revision as of 10:43, 21 September 2023
The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/GeneratorEquipmentPrototype.html
This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.
Prototype definitions » PrototypeBase » Prototype/Equipment » Prototype/GeneratorEquipment
Used by portable fusion reactor. Provides power in equipment grids. Can produce power for free or use a burner energy source.
Prototype/GeneratorEquipment — generator-equipment | ||
power | :: | Energy |
burner | :: | EnergySource (optional) |
Inherited from Prototype/Equipment | ||
categories | :: | table of string |
energy_source | :: | EnergySource |
shape | :: | EquipmentShape |
sprite | :: | Sprite |
background_border_color | :: | Color (optional) |
background_color | :: | Color (optional) |
grabbed_background_color | :: | Color (optional) |
take_result | :: | string (optional) |
Inherited from PrototypeBase | ||
name | :: | string |
type | :: | string |
localised_description | :: | LocalisedString (optional) |
localised_name | :: | LocalisedString (optional) |
order | :: | Order (optional) |
Extends Prototype/Equipment.
Mandatory properties
This prototype inherits all the properties from Prototype/Equipment.
power
Type: Energy
The power output of this equipment.
Optional properties
burner
Type: EnergySource
Must be a burner energy source. If not defined, this equipment produces power for free.