Factorio Prototype DocsVersion 1.1.107

TileSpriteWithProbability :: struct

Inherits from TileSprite

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 TileSprite
count :: uint32

Frame count. [...]

Frame count. [...]

picture :: FileName
hr_version optional :: TileSprite

If this property exists and high resolution sprites are turned on, its contents are used to load the tile sprite. [...]

If this property exists and high resolution sprites are turned on, its contents are used to load the tile sprite. [...]

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 :: uint32

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. [...]

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