Prototype/Loader1x2: Difference between revisions
(Added prototype type to page) |
(0.18.10) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/TransportBeltConnectable}} | |||
Prototype | Continuously loads and unloads machines, as an alternative to inserters.<br> | ||
This loader type is identical to [[Prototype/Loader1x1]] with the exception of its hardcoded belt_distance: | |||
* The belt_distance of the loader determines the distance between the position of this loader and the tile of the loader's belt target. | |||
* This loader type always has a belt_distance of 0.5, meaning by default it is 2 tiles long in total. | |||
* For a loader type with a belt_distance of 0, see [[Prototype/Loader1x1]]. | |||
{{Prototype TOC|loader}} | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/TransportBeltConnectable]]. | This prototype inherits all the properties from [[Prototype/TransportBeltConnectable]]. | ||
{{Prototype property|structure|[[Types/table|table]]}} | |||
Table with the following members: | |||
* direction_in - [[Types/Sprite4Way|Sprite4Way]] - Mandatory. | |||
* direction_out - [[Types/Sprite4Way|Sprite4Way]] - Mandatory. | |||
* back_patch - [[Types/Sprite4Way|Sprite4Way]] - Optional. | |||
* front_patch - [[Types/Sprite4Way|Sprite4Way]] - Optional. | |||
{{Prototype property|filter_count|[[Types/uint8|uint8]]}} | |||
How many item filters this loader has. Maximum count of filtered items in loader is 5. | |||
Maximum count of filtered items in loader is 5. | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|structure_render_layer|[[Types/RenderLayer|RenderLayer]]|"object"|optional=true}} | |||
{{Prototype property|container_distance|[[Types/double|double]]|1.5|optional=true}} | |||
The distance between the position of this loader and the tile of the loader's container target. | |||
' | {{Prototype property|belt_length|[[Types/double|double]]|0.5|optional=true}} | ||
How long this loader's belt is. Should be the same as belt_distance, which is hardcoded to 0.5 for this loader type. [[Prototype/Loader1x1]] can be used if a belt_distance of 0 is desired. |
Latest revision as of 11:27, 3 March 2020
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/TransportBeltConnectable » Prototype/Loader1x2
Continuously loads and unloads machines, as an alternative to inserters.
This loader type is identical to Prototype/Loader1x1 with the exception of its hardcoded belt_distance:
- The belt_distance of the loader determines the distance between the position of this loader and the tile of the loader's belt target.
- This loader type always has a belt_distance of 0.5, meaning by default it is 2 tiles long in total.
- For a loader type with a belt_distance of 0, see Prototype/Loader1x1.
Mandatory properties
This prototype inherits all the properties from Prototype/TransportBeltConnectable.
structure
Type: table
Table with the following members:
- direction_in - Sprite4Way - Mandatory.
- direction_out - Sprite4Way - Mandatory.
- back_patch - Sprite4Way - Optional.
- front_patch - Sprite4Way - Optional.
filter_count
Type: uint8
How many item filters this loader has. Maximum count of filtered items in loader is 5.
Optional properties
structure_render_layer
Type: RenderLayer
Default: "object"
container_distance
Type: double
Default: 1.5
The distance between the position of this loader and the tile of the loader's container target.
belt_length
Type: double
Default: 0.5
How long this loader's belt is. Should be the same as belt_distance, which is hardcoded to 0.5 for this loader type. Prototype/Loader1x1 can be used if a belt_distance of 0 is desired.