Prototype/Pump: Difference between revisions
LazyFridge (talk | contribs) (A page for the pump entity.) |
(1.1.51: Prototype/EntityWithOwner added) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{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. | ||
{{Prototype TOC|pump}} | |||
== Mandatory properties == | |||
This prototype inherits all the properties from [[Prototype/EntityWithOwner]]. | |||
{{Prototype property|fluid_box|[[Types/FluidBox|FluidBox]]}} | |||
The area of the entity where fluid inputs and outputs. | |||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | |||
The type of energy the pump uses. | The type of energy the pump uses. | ||
== | {{Prototype property|energy_usage|[[Types/Energy|Energy]]}} | ||
The amount of energy the pump uses. | |||
{{Prototype property|pumping_speed|[[Types/double|double]]}} | |||
The amount of fluid this pump transfers per tick. | |||
{{Prototype property|animations|[[Types/Animation4Way|Animation4Way]]}} | |||
The animation for the pump. | |||
== Optional properties == | |||
{{Prototype property|fluid_wagon_connector_speed|[[Types/double|double]]|1 / 64.0|optional=true}} | |||
{{Prototype property|fluid_wagon_connector_alignment_tolerance|[[Types/double|double]]|2 / 32.0|optional=true}} | |||
{{Prototype property|fluid_wagon_connector_frame_count|[[Types/uint8|uint8]]|1|optional=true}} | |||
{{Prototype property|fluid_animation|[[Types/Animation4Way|Animation4Way]]|optional=true}} | |||
{{Prototype property|glass_pictures|[[Types/Sprite4Way|Sprite4Way]]|optional=true}} | |||
{{Prototype property|circuit_wire_max_distance|[[Types/double|double]]|0|optional=true}} | |||
{{Prototype property|draw_copper_wires|[[Types/bool|bool]]|true|optional=true}} | |||
{{Prototype property|draw_circuit_wires|[[Types/bool|bool]]|true|optional=true}} | |||
{{Prototype property|circuit_wire_connection_points|[[Types/table|table]] of [[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | |||
Mandatory if circuit_wire_max_distance > 0. | |||
{{Prototype property|circuit_connector_sprites|[[Types/table|table]] of [[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} | |||
Mandatory if circuit_wire_max_distance > 0. | |||
{{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/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.