Prototype/StorageTank: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(AABBbox -> BoundingBox)
(0.16)
Line 2: Line 2:
A [[storage tank]]. Based on [[Prototype/EntityWithHealth]].
A [[storage tank]]. Based on [[Prototype/EntityWithHealth]].


== Properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].


=== fluid_box ===
=== fluid_box ===
'''Type''': [[Types/FluidBox]]
'''Type''': [[Types/FluidBox]]
=== two_direction_only ===
'''Type''': [[Types/bool]]


=== window_bounding_box ===
=== window_bounding_box ===
Line 15: Line 12:


=== pictures ===
=== pictures ===
'''Type''': [[Types/table]] of [[Types/Sprite]]
==== picture ====
'''Type''': [[Types/Sprite4Way]]
 
==== window_background ====
'''Type''': [[Types/Sprite]]
 
==== fluid_background ====
'''Type''': [[Types/Sprite]]
 
==== flow_sprite ====
'''Type''': [[Types/Sprite]]
 
==== gas_flow ====
'''Type''': [[Types/Animation]]


=== flow_length_in_ticks ===
=== flow_length_in_ticks ===
'''Type''': [[Types/uint]]
'''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


=== circuit_wire_connection_points ===
=== circuit_wire_connection_points ===
'''Type''': [[Types/table]] of [[Types/ConnectionPoint]]
'''Type''': [[Types/table]] of [[Types/WireConnectionPoint]]
 
Mandatory if circuit_wire_max_distance  > 0.


=== circuit_connector_sprites ===
=== circuit_connector_sprites ===
'''Type''': [[Types/table]] of [[Types/Sprite]]
'''Type''': [[Types/table]] of [[Types/CircuitConnectorSprites]]


=== circuit_wire_max_distance ===
Mandatory if circuit_wire_max_distance > 0.
'''Type''': [[Types/uint]]

Revision as of 09:13, 22 May 2018

Basics

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

picture

Type: Types/Sprite4Way

window_background

Type: Types/Sprite

fluid_background

Type: Types/Sprite

flow_sprite

Type: Types/Sprite

gas_flow

Type: 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

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.