Factorio Prototype DocsVersion 2.0.28

TileMainPictures :: struct

Inherits from TileSpriteLayout

Properties

size :: uint32

Only powers of 2 from 1 to 128 can be used. [...]

Only powers of 2 from 1 to 128 can be used. [...]

probability optional :: double

Probability of 1x1 (size = 1) version of tile must be 1.

Probability of 1x1 (size = 1) version of tile must be 1.

weights optional :: array[double]

Inherited from TileSpriteLayout
picture :: FileName
scale optional :: float
x optional :: SpriteSizeType

Horizontal position of the sprite in the source file in pixels.

Horizontal position of the sprite in the source file in pixels.

y optional :: SpriteSizeType

Vertical position of the sprite in the source file in pixels.

Vertical position of the sprite in the source file in pixels.

line_length optional :: uint8

Once the specified number of pictures is loaded, other pictures are loaded on other line. [...]

Once the specified number of pictures is loaded, other pictures are loaded on other line. [...]

count optional :: uint8

Frame count.

Frame count.

Properties

size :: uint32

Only powers of 2 from 1 to 128 can be used. Square size of the tile arrangement this sprite is used for. Used to calculate the width and height of the sprite which cannot be set directly. (width or height) = size * 32 / scale.

probability :: double optional

Default: 1.0

Probability of 1x1 (size = 1) version of tile must be 1.

weights :: array[double] optional

Prototypes

Types

Defines