Types/BeaconModuleVisualizations

From Official Factorio Wiki
Jump to navigation Jump to search

Used by Types/BeaconGraphicsSet (Prototype/Beacon). This is a Types/table with the below properties.

Mandatory properties

art_style

Type: string

The visualization is chosen based on the Prototype/Module#art_style, meaning if module art style == beacon module visualization art style then this visualization is chosen. Vanilla uses "vanilla" here.

Optional properties

use_for_empty_slots

Type: bool

Default: false

tier_offset

Type: int32

Default: 0

slots

Type: table (array) of table (array) of BeaconModuleVisualization

The outer array contains the different slots, the inner array contains the different layers for those slots (with different tints etc). Example:

slots =
{
  { --slot 1
    { --layer 1 of slot 1
      BeaconModuleVisualization data
    },
    { --layer 2 of slot 1
      BeaconModuleVisualization data
    }
  },
  { --slot 2
    { --layer 1 of slot 2
      BeaconModuleVisualization data
    },
    { --layer 2 of slot 2
      BeaconModuleVisualization data
    },
    { --layer 3 of slot 2
      BeaconModuleVisualization data
    }
  }
}