Prototype/Pump: Difference between revisions
(Converted to SMW format) |
(moved PumpConnectorGraphics) |
||
Line 46: | Line 46: | ||
Mandatory if circuit_wire_max_distance > 0. | Mandatory if circuit_wire_max_distance > 0. | ||
{{Prototype property|fluid_wagon_connector_graphics|[[Types/table|table]] of [[Types/ | {{Prototype property|fluid_wagon_connector_graphics|[[Types/table|table]] of [[Types/PumpConnectorGraphics|PumpConnectorGraphics]]|optional=true}} | ||
Needs <code>load_animations</code> and <code>unload_animations</code> keys, both with a [[Types/ | Needs <code>load_animations</code> and <code>unload_animations</code> keys, both with a [[Types/PumpConnectorGraphics|PumpConnectorGraphics]] as the value. |
Revision as of 12:36, 4 May 2020
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Pump
The Pump is used to transfer liquids or gas between tanks, and pipes.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
fluid_box
Type: FluidBox
The area of the entity where fluid inputs and outputs.
energy_source
Type: EnergySource
The type of energy the pump uses.
energy_usage
Type: Energy
The amount of energy the pump uses.
pumping_speed
Type: double
The amount of fluid this pump transfers per tick.
animations
Type: Animation4Way
The animation for the pump.
Optional properties
fluid_wagon_connector_speed
Type: double
Default: 1 / 64.0
fluid_wagon_connector_alignment_tolerance
Type: double
Default: 2 / 32.0
fluid_wagon_connector_frame_count
Type: uint8
Default: 1
fluid_animation
Type: Animation4Way
glass_pictures
Type: Sprite4Way
circuit_wire_max_distance
Type: double
Default: 0
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
circuit_wire_connection_points
Type: table of WireConnectionPoint
Mandatory if circuit_wire_max_distance > 0.
circuit_connector_sprites
Type: table of CircuitConnectorSprites
Mandatory if circuit_wire_max_distance > 0.
fluid_wagon_connector_graphics
Type: table of PumpConnectorGraphics
Needs load_animations
and unload_animations
keys, both with a PumpConnectorGraphics as the value.