Prototype/StorageTank: Difference between revisions
Jump to navigation
Jump to search
(Added prototype type to page) |
(0.17) |
||
Line 14: | Line 14: | ||
=== pictures === | === pictures === | ||
'''Type''': [[Types/table]] | |||
'''Type''': [[Types/ | |||
Table with the following mandatory members: | |||
* picture - [[Types/Sprite4Way]] | |||
* window_background - [[Types/Sprite]] | |||
* fluid_background - [[Types/Sprite]] | |||
* flow_sprite - [[Types/Sprite]] | |||
* gas_flow - [[Types/Animation]] | |||
=== flow_length_in_ticks === | === flow_length_in_ticks === | ||
Line 45: | Line 39: | ||
'''Default''': 0 | '''Default''': 0 | ||
=== draw_copper_wires === | |||
'''Type''': [[Types/bool]] | |||
'''Default''': true | |||
=== draw_circuit_wires === | |||
'''Type''': [[Types/bool]] | |||
'''Default''': true | |||
=== circuit_wire_connection_points === | === circuit_wire_connection_points === |
Revision as of 14:23, 27 March 2019
Basics
Prototype type: storage-tank
A storage tank. Based on Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
fluid_box
Type: Types/FluidBox
window_bounding_box
Type: Types/BoundingBox
pictures
Type: Types/table
Table with the following mandatory members:
- picture - Types/Sprite4Way
- window_background - Types/Sprite
- fluid_background - Types/Sprite
- flow_sprite - Types/Sprite
- gas_flow - Types/Animation
flow_length_in_ticks
Type: Types/uint32
Must be positive.
Optional properties
two_direction_only
Type: Types/bool
Default: false
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_wire_connection_points
Type: Types/table of Types/WireConnectionPoint
Mandatory if circuit_wire_max_distance > 0.
circuit_connector_sprites
Type: Types/table of Types/CircuitConnectorSprites
Mandatory if circuit_wire_max_distance > 0.