Codeable Splitter
Functions
canOutput (output : Int) → canTransfer : Bool
Allows to check if we can transfer an item to the given output queue.
Details
Flags |
RuntimeSync MemberFunc |
Display Name |
Can Output |
| Name | Type | Description |
|---|---|---|
Output |
Int |
The index of the output queue you want to check (0 = left, 1 = middle, 2 = right) |
| Name | Type | Description |
|---|---|---|
Can Transfer |
Bool |
True if you could transfer an item to the given output queue. |
getConnectorByIndex (outputIndex : Int) → ReturnValue : Object<FactoryConnection>
Returns the factory connector associated with the given index.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Connector by Index |
| Name | Type | Description |
|---|---|---|
Output Index |
Int |
The integer used in TransferItem and ItemOutputted to reference a specific output. Valid Values: 0-3 |
| Name | Type | Description |
|---|---|---|
ReturnValue |
Object<FactoryConnection> |
getInput () → item : Struct<Item>
Returns the next item in the input queue.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get Input |
| Name | Type | Description |
|---|---|---|
Item |
Struct<Item> |
The next item in the input queue. |
transferItem (output : Int) → transfered : Bool
Allows to transfer an item from the input queue to the given output queue if possible.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Transfer Item |
| Name | Type | Description |
|---|---|---|
Output |
Int |
The index of the output queue you want to transfer the next item to (0 = left, 1 = middle, 2 = right) |
| Name | Type | Description |
|---|---|---|
Transfered |
Bool |
true if it was able to transfer the item. |
Signals
ItemOutputted (Int Output output, Struct<Item> Item item)
Triggers when an item is popped from on of the output queues (aka it got transferred to a conveyor).
Details
| Name | Type | Description |
|---|---|---|
Output |
Int |
The index of the output queue from which the item got removed. |
Item |
Struct<Item> |
The item removed from the output queue. |