Wiki

Clone wiki

RtsPlayMakerActions / Action / FloodFill

Flood Fill

Flood fill a tile using a brush (or erase if no brush is specified).

Refer to Brushes section of user guide for further information regarding brushes.


This action replicates functionality of PaintingUtility.FloodFill.


Screenshot of action user interface.

Remarks

When painting multiple tiles in sequence you should consider using the Begin Bulk Edit and End Bulk Edit actions to improve performance.

Input Variables

Tile System Component : Rotorz.Tile.TileSystem
Tile system of which to edit.
Brush (Optional) : Rotorz.Tile.Brush
The brush; a value of null indicates that tile should be erased.

Row Index : int
Zero-based row of tile to begin filling from.
Column Index : int
Zero-based column of tile to begin filling from.
Maximum Fill Count : int
Limits the number of tiles painted in a single filling action (Default: 100). Set to 0 to disable limitation.

Variation Index : int
Zero-based index of desired tile variation. Specify -1 for randomization.
Variation Shift Count : int
Count of variations to shift by.

Randomize Rotation : bool
Indicates whether rotation should be randomized when painting tiles.
Rotation : int
Rotation of painted tiles.

Updated