Factorio Prototype DocsVersion 2.0.42

PumpConnectorGraphics :: struct Example code

A mapping of arrays of PumpConnectorGraphicsAnimations to all 4 directions of the pump connection (to a fluid wagon).

Properties

north :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

Size of the array must be 6 or more.

east :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

Size of the array must be 6 or more.

south :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

Size of the array must be 6 or more.

west :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

Size of the array must be 6 or more.

Properties

north :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

east :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

south :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

west :: array[PumpConnectorGraphicsAnimation]

Size of the array must be 6 or more.

Example

load_animations =
{
  west =
  {
    [1] =
    {
      standup_base =
      {
        filename = "__base__/graphics/entity/pump/connector/V-R-135-load-standup-base.png",
        width = 110,
        height = 126,
        scale = 0.5,
        line_length = 1,
        frame_count = 20,
        shift = util.by_pixel(-23.5, -13.5)
      },
      standup_shadow =
      {
        filename = "__base__/graphics/entity/pump/connector/V-R-1-load-standup-base-shadow.png",
        width = 157,
        height = 136,
        scale = 0.5,
        line_length = 1,
        frame_count = 20,
        shift = util.by_pixel(-8.75, 8.5)
      },
    },
    [2] =
    {
      standup_base = { ... },
      standup_shadow = { ... },
      connector_shadow = { ... },
    },
    [3] = { ... },
    [4] = { ... },
    [5] = { ... },
    [6] = { ... },
  },
  north = { ... },
  east = { ... },
  south = { ... },
}

Prototypes

Types

Defines