Prototype/SolarPanel: Difference between revisions
Jump to navigation
Jump to search
(Created page.) |
(0.16) |
||
Line 2: | Line 2: | ||
A [[solar panel]]. Based on [[Prototype/EntityWithHealth]]. | A [[solar panel]]. Based on [[Prototype/EntityWithHealth]]. | ||
== | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
=== energy_source === | === energy_source === | ||
Type: [[Types/EnergySource]] | '''Type''': [[Types/EnergySource]] | ||
Sets how this solar panel connects to the energy network. The most relevant property seems to be the output_priority. | Sets how this solar panel connects to the energy network. The most relevant property seems to be the output_priority. Has to be an electric energy source. | ||
=== picture === | === picture === | ||
Type: [[Types/ | '''Type''': [[Types/SpriteVariations]] | ||
The picture displayed for this solar panel. | The picture displayed for this solar panel. | ||
=== production === | === production === | ||
Type: [[Types/ | '''Type''': [[Types/Energy]] | ||
The maximum amount of power this solar panel can produce. | The maximum amount of power this solar panel can produce. | ||
== Optional properties == | |||
=== overlay === | |||
'''Type''': [[Types/SpriteVariations]] | |||
Overlay has to be empty or have same number of variations as picture. |
Revision as of 18:06, 21 May 2018
Basics
A solar panel. Based on Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
energy_source
Type: Types/EnergySource
Sets how this solar panel connects to the energy network. The most relevant property seems to be the output_priority. Has to be an electric energy source.
picture
Type: Types/SpriteVariations
The picture displayed for this solar panel.
production
Type: Types/Energy
The maximum amount of power this solar panel can produce.
Optional properties
overlay
Type: Types/SpriteVariations
Overlay has to be empty or have same number of variations as picture.