Prototype/Inserter: Difference between revisions
(→Optional properties: more descriptions) |
(1.1.51: Prototype/EntityWithOwner added) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/ | {{Prototype parent|Prototype/EntityWithOwner}} | ||
An [[inserter]]. | An [[inserter]]. | ||
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|extension_speed|[[Types/double|double]]|}} | {{Prototype property|extension_speed|[[Types/double|double]]|}} | ||
Line 22: | Line 22: | ||
{{Prototype property|hand_closed_picture|[[Types/Sprite|Sprite]]}} | {{Prototype property|hand_closed_picture|[[Types/Sprite|Sprite]]}} | ||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | {{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | ||
Line 43: | Line 37: | ||
{{Prototype property|allow_custom_vectors|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|allow_custom_vectors|[[Types/bool|bool]]|false|optional=true}} | ||
Whether pickup and insert position can be set run-time. | Whether pickup and insert position can be set run-time. | ||
{{Prototype property|allow_burner_leech|[[Types/bool|bool]]|false|optional=true}} | |||
Whether this burner inserter can fuel itself from the fuel inventory of the entity it is picking up items from. | |||
{{Prototype property|draw_held_item|[[Types/bool|bool]]|true|optional=true}} | {{Prototype property|draw_held_item|[[Types/bool|bool]]|true|optional=true}} | ||
Whether the item that the inserter is holding should be drawn. | Whether the item that the inserter is holding should be drawn. | ||
{{Prototype property|use_easter_egg|[[Types/bool|bool]]|true|optional=true}} | |||
Whether the inserter should be able to fish [[raw fish|fish]]. | |||
{{Prototype property|filter_count|[[Types/uint8|uint8]]|0|optional=true}} | {{Prototype property|filter_count|[[Types/uint8|uint8]]|0|optional=true}} | ||
How many filters this inserter has. Maximum count of filtered items in inserter is 5. | How many filters this inserter has. Maximum count of filtered items in inserter is 5. | ||
{{Prototype property|hand_base_shadow|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|hand_open_shadow|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|hand_closed_shadow|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|hand_size|[[Types/double|double]]|0.75|optional=true}} | {{Prototype property|hand_size|[[Types/double|double]]|0.75|optional=true}} | ||
Line 64: | Line 70: | ||
{{Prototype property|draw_inserter_arrow|[[Types/bool|bool]]|true|optional=true}} | {{Prototype property|draw_inserter_arrow|[[Types/bool|bool]]|true|optional=true}} | ||
Whether the yellow arrow that indicates the drop point of the inserter and the line that indicates the pickup position should be drawn. | Whether the yellow arrow that indicates the drop point of the inserter and the line that indicates the pickup position should be drawn. | ||
{{Prototype property|chases_belt_items|[[Types/bool|bool]]|true|optional=true}} | |||
Whether the inserter hand should move to the items it picks up from belts, leading to item chasing behaviour. If this is off, the inserter hand will stay in the center of the belt and any items picked up from the edges of the belt "teleport" to the inserter hand. | |||
{{Prototype property|stack_size_bonus|[[Types/ItemCountType|ItemCountType]]|0|optional=true}} | |||
Stack size bonus that is inherent to the prototype without having to be researched. | |||
{{Prototype property|circuit_wire_connection_points|[[Types/table|table]] of [[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | {{Prototype property|circuit_wire_connection_points|[[Types/table|table]] of [[Types/WireConnectionPoint|WireConnectionPoint]]|optional=true}} | ||
{{Prototype property|circuit_connector_sprites|[[Types/table|table]] of [[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} | {{Prototype property|circuit_connector_sprites|[[Types/table|table]] of [[Types/CircuitConnectorSprites|CircuitConnectorSprites]]|optional=true}} |
Latest revision as of 19:27, 21 January 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Inserter
An inserter.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
extension_speed
Type: double
rotation_speed
Type: double
insert_position
Type: vector
pickup_position
Type: vector
platform_picture
Type: Sprite4Way
hand_base_picture
Type: Sprite
hand_open_picture
Type: Sprite
hand_closed_picture
Type: Sprite
energy_source
Type: EnergySource
Defines how this inserter gets energy. The emissions set on the energy source are ignored so inserters cannot produce pollution.
Optional properties
energy_per_movement
Type: Energy
Default: 0
energy_per_rotation
Type: Energy
Default: 0
stack
Type: bool
Default: false
Whether this inserter is considered a stack inserter. Relevant for determining how Inserter capacity bonus (research) applies to the inserter.
allow_custom_vectors
Type: bool
Default: false
Whether pickup and insert position can be set run-time.
allow_burner_leech
Type: bool
Default: false
Whether this burner inserter can fuel itself from the fuel inventory of the entity it is picking up items from.
draw_held_item
Type: bool
Default: true
Whether the item that the inserter is holding should be drawn.
use_easter_egg
Type: bool
Default: true
Whether the inserter should be able to fish fish.
filter_count
Type: uint8
Default: 0
How many filters this inserter has. Maximum count of filtered items in inserter is 5.
hand_base_shadow
Type: Sprite
hand_open_shadow
Type: Sprite
hand_closed_shadow
Type: Sprite
hand_size
Type: double
Default: 0.75
Used to determine how long the arm of the inserter is when drawing it. Does not affect gameplay. The lower the value, the straighter the arm. Increasing the value will give the inserter a bigger bend due to its longer parts.
circuit_wire_max_distance
Type: double
Default: 0
The maximum circuit wire distance for this entity.
draw_copper_wires
Type: bool
Default: true
draw_circuit_wires
Type: bool
Default: true
default_stack_control_input_signal
Type: SignalIDConnector
draw_inserter_arrow
Type: bool
Default: true
Whether the yellow arrow that indicates the drop point of the inserter and the line that indicates the pickup position should be drawn.
chases_belt_items
Type: bool
Default: true
Whether the inserter hand should move to the items it picks up from belts, leading to item chasing behaviour. If this is off, the inserter hand will stay in the center of the belt and any items picked up from the edges of the belt "teleport" to the inserter hand.
stack_size_bonus
Type: ItemCountType
Default: 0
Stack size bonus that is inherent to the prototype without having to be researched.
circuit_wire_connection_points
Type: table of WireConnectionPoint
circuit_connector_sprites
Type: table of CircuitConnectorSprites