Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## EquipmentShape :: struct

The shape and dimensions of an equipment module.

## Properties

- default
- sorted

width | :: uint32 |
height | :: uint32 |
type | :: `"full"` or `"manual"` | The shape. [...]
The shape. [...]
points optional | :: array[array[uint32]] | Only used when when `type` is `"manual"`. [...]
Only used when when `type` is `"manual"`. [...]

height | :: uint32 |
type | :: `"full"` or `"manual"` | The shape. [...]
The shape. [...]
width | :: uint32 |
points optional | :: array[array[uint32]] | Only used when when `type` is `"manual"`. [...]
Only used when when `type` is `"manual"`. [...]

## Properties

### width :: uint32

### height :: uint32

### type :: `"full"` or `"manual"`

The shape. When using "manual", `points` must be defined.

### points :: array[array[uint32]] optional

Only used when when `type` is `"manual"`. Each inner array is a "position" inside width×height of the equipment. Each positions that is defined is a filled squares of the equipment shape. `{0, 0}` is the upper left corner of the equipment.

#### Example

    -- A set of points which fall within the width/height - can't be empty
    points =
    {
      {0, 0}, {1, 0}, {2, 0}, {3, 0},
      {0, 1},                 {3, 1},
      {0, 2},                 {3, 2},
      {0, 3}, {1, 3}, {2, 3}, {3, 3}
    }

Type used in

- EquipmentGhostPrototype::shape
- EquipmentPrototype::shape