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

Parameters
Name Type Description

Output output

Int

The index of the output queue you want to check (0 = left, 1 = middle, 2 = right)

Return Values
Name Type Description

Can Transfer canTransfer

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

Parameters
Name Type Description

Output Index outputIndex

Int

The integer used in TransferItem and ItemOutputted to reference a specific output. Valid Values: 0-3

Return Values
Name Type Description

ReturnValue ReturnValue

Object<FactoryConnection>

getInput () → item : Struct<Item>

Returns the next item in the input queue.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Input

Return Values
Name Type Description

Item 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

Parameters
Name Type Description

Output output

Int

The index of the output queue you want to transfer the next item to (0 = left, 1 = middle, 2 = right)

Return Values
Name Type Description

Transfered 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
Parameters
Name Type Description

Output output

Int

The index of the output queue from which the item got removed.

Item item

Struct<Item>

The item removed from the output queue.

ItemRequest (Struct<Item> Item item)

Triggers when a new item is ready in the input queue.

Details
Parameters
Name Type Description

Item item

Struct<Item>

The new item in the input queue.