Prototype/Pump: Difference between revisions
(Converted to SMW format) |
(1.1.51: Prototype/EntityWithOwner added) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
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. | ||
Line 5: | Line 5: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/ | This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | ||
{{Prototype property|fluid_box|[[Types/FluidBox|FluidBox]]}} | {{Prototype property|fluid_box|[[Types/FluidBox|FluidBox]]}} | ||
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. |
Latest revision as of 19:27, 21 January 2022
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/EntityWithOwner.
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.