diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2021-10-21 16:42:06 +0200 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2021-10-21 16:57:28 +0200 |
commit | d1aef4507220196328a2b68a04aa06607849deaa (patch) | |
tree | c5a3c61866c901fd0ed4bcf7ec4af782dc9f1c74 /doc/classes | |
parent | ef93e1381b2f24abbd357ec0f32b81ed8a02a1fc (diff) |
Allow updating TileMap cells using surrounding terrains
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/TileMap.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index e65d5b4533..4ac5718e04 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -204,6 +204,17 @@ - The alternative tile identifier [code]alternative_tile[/code] identifies a tile alternative the source is a [TileSetAtlasSource], and the scene for a [TileSetScenesCollectionSource]. </description> </method> + <method name="set_cells_from_surrounding_terrains"> + <return type="void" /> + <argument index="0" name="layer" type="int" /> + <argument index="1" name="cells" type="Vector2i[]" /> + <argument index="2" name="terrain_set" type="int" /> + <argument index="3" name="ignore_empty_terrains" type="bool" default="true" /> + <description> + Updates all the cells in the [code]cells[/code] coordinates array and replace them by tiles that matches the surrounding cells terrains. Only cells form the given [code]terrain_set[/code] are considered. + If [code]ignore_empty_terrains[/code] is true, zones with no terrain defined are ignored to select the tiles. + </description> + </method> <method name="set_layer_enabled"> <return type="void" /> <argument index="0" name="layer" type="int" /> |