Codeable Merger
Buildingtype |
buildable network component |
Factory Connectors |
1x Conveyor Output & 3x Conveyor Input |
Max Network Connections |
2 |
Build Gun | Ingame |
---|---|
The merger allows you to control the flow of items.
It has one output queue that can be filled from the input to up to two items. Those get then transfered to the conveyor at the output connector.
You can transfer items from on of the inputs to the output if the given input has a item and the output queue has fewer than two items.
Each input queue gets automaticaly filled by the attached conveyor with up to two values. You can then decide for each input when the first item in the queue get transfered to the output.
Interface
Parent |
Functions
Transfer Item transferItem
(Int Input input
, Bool Transfered transfered
out)
Allows to transfer an item from the given input queue to the output queue if possible.
Flags |
RuntimeSync RuntimeParallel |
- Parameters
-
Name Type Description Input
input
Int
The index of the input queue you want to transfer the next item to the output queue. (0 = right, 1 = middle, 2 = left)
- Return Values
-
Name Type Description Transfered
transfered
Bool out
true if it was able to transfer the item.
Get Input getInput
(Int Input input
, Struct(Item) Item item
out)
Returns the next item in the given input queue.
Flags |
RuntimeSync RuntimeParallel |
- Parameters
-
Name Type Description Input
input
Int
The index of the input queue you want to check (0 = right, 1 = middle, 2 = left)
- Return Values
-
Name Type Description Item
item
Struct(Item) out
The next item in the input queue.
Signals
Item Request ItemRequest
(Int Input input
, Struct(Item) Item item
)
Triggers when a new item is ready in one of the input queues.
Flags |
|
- Parameters
-
Name Type Description Input
input
Int
The index of the input queue at which the item is ready.
Item
item
Struct(Item) out
The new item in the input queue.
Item Outputted ItemOutputted
(Struct(Item) Item item
)
Triggers when an item is popped from the output queue (aka it got transferred to a conveyor).
Flags |
|
- Parameters
-
Name Type Description Item
item
Struct(Item) out
The item removed from the output queue.
- Buildings
- Apis
-
Component - Computer - Event - FileSystem