Factorio Prototype DocsVersion 1.1.107

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 = 55,
      height = 63,
      line_length =1,
      frame_count =20,
      shift = util.by_pixel(-23.5, -13.5),
      hr_version = {
        filename = "__base__/graphics/entity/pump/connector/hr-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 = 79,
      height = 69,
      line_length =1,
      frame_count =20,
      shift = util.by_pixel(-8.5, 8.5),
      hr_version = {
        filename = "__base__/graphics/entity/pump/connector/hr-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