Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# NeighbourConnectableConnectionDefinition - Prototype Docs

## NeighbourConnectableConnectionDefinition :: struct

In order for 2 NeighbourConnectable to connect they need to share a connection point at the same position with opposite direction and both accept neighbor's category.

## Properties

- default
- sorted

location | :: MapLocation |
category | :: NeighbourConnectableConnectionCategory | Name of a category this connection should belong to. [...]
Name of a category this connection should belong to. [...]
neighbour_category optional | :: array[NeighbourConnectableConnectionCategory] | Table of neighbor categories this connection will connect to.
Table of neighbor categories this connection will connect to.

category | :: NeighbourConnectableConnectionCategory | Name of a category this connection should belong to. [...]
Name of a category this connection should belong to. [...]
location | :: MapLocation |
neighbour_category optional | :: array[NeighbourConnectableConnectionCategory] | Table of neighbor categories this connection will connect to.
Table of neighbor categories this connection will connect to.

## Properties

### location :: MapLocation

#### MapLocation :: struct

## Properties

### position :: MapPosition

Position relative to entity's position where the connection point will be located at.

### direction :: defines.direction

Direction this connection point will be facing to.

### category :: NeighbourConnectableConnectionCategory

Name of a category this connection should belong to. Used when deciding which connections are allowed to connect to this.

Cannot be an empty string.

### neighbour_category :: array[NeighbourConnectableConnectionCategory] optional

Table of neighbor categories this connection will connect to.

Type used in

- NeighbourConnectable::connections