Prototype/Pump: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎Properties: removed double property)
(0.16)
Line 1: Line 1:
==Basics==
== Basics ==
The Pump is used to transfer liquids or gas between tanks, and pipes.
The Pump is used to transfer liquids or gas between tanks, and pipes.  Based on [[Prototype/EntityWithHealth]].
==Properties==
 
===energy_source===
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
 
=== fluid_box ===
'''Type''': [[Types/FluidBox]]
 
The area of the entity where fluid inputs and outputs.
 
=== energy_source ===
'''Type''': [[Types/EnergySource]]
'''Type''': [[Types/EnergySource]]


The type of energy the pump uses.
The type of energy the pump uses. Must be an electric energy source.


===energy_usage===
=== energy_usage ===
'''Type''': [[Types/EnergyUsage]]
'''Type''': [[Types/Energy]]


The amount of energy the pump uses.
The amount of energy the pump uses.


===pumping_speed===
=== pumping_speed ===
'''Type''': [[Types/unsigned]]
'''Type''': [[Types/double]]


The amount of fluid or gas this pump and transfer at. Default is 200.
The amount of fluid this pump transfers per tick.


===animations===
=== animations ===
'''Type''': [[Types/Animation]]
'''Type''': [[Types/Animation4Way]]


The animation for the pump.
The animation for the pump.


===fluid_box===
== Optional properties ==
'''Type''': [[Types/FluidBox]]
 
=== fluid_wagon_connector_speed ===
'''Type''': [[Types/double]]
 
'''Default''': 1 / 64.0
 
=== fluid_wagon_connector_frame_count ===
'''Type''': [[Types/uint8]]
 
'''Default''': 1
 
=== fluid_animation ===
'''Type''': [[Types/Animation4Way]]
 
=== glass_pictures ===
'''Type''': [[Types/Sprite4Way]]
 
=== 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.
 
=== fluid_wagon_connector_graphics ===
'''Type''': [[Types/table]] of [[Types/ConnectorGraphics]]


The area of the entity where fluid/gas inputs, and outputs.
Needs <code>load_animations</code> and <code>unload_animations</code> keys, both with a [[Types/ConnectorGraphics]] as the value.

Revision as of 18:03, 21 May 2018

Basics

The Pump is used to transfer liquids or gas between tanks, and pipes. Based on Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

fluid_box

Type: Types/FluidBox

The area of the entity where fluid inputs and outputs.

energy_source

Type: Types/EnergySource

The type of energy the pump uses. Must be an electric energy source.

energy_usage

Type: Types/Energy

The amount of energy the pump uses.

pumping_speed

Type: Types/double

The amount of fluid this pump transfers per tick.

animations

Type: Types/Animation4Way

The animation for the pump.

Optional properties

fluid_wagon_connector_speed

Type: Types/double

Default: 1 / 64.0

fluid_wagon_connector_frame_count

Type: Types/uint8

Default: 1

fluid_animation

Type: Types/Animation4Way

glass_pictures

Type: Types/Sprite4Way

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.

fluid_wagon_connector_graphics

Type: Types/table of Types/ConnectorGraphics

Needs load_animations and unload_animations keys, both with a Types/ConnectorGraphics as the value.