summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-04-08 10:15:14 +0200
committerGitHub <noreply@github.com>2019-04-08 10:15:14 +0200
commit4c10b1da7daa878f893111633222a46d9009cb3e (patch)
tree8531b7e1df2de55b51b6e5015d52a682261bc40c
parent668bf1fd0dee569769786af37942eb8a4ef730a6 (diff)
parentc8d0c61d912f40709b38857972299096ba511a7b (diff)
Merge pull request #27698 from YeldhamDev/doc_tilemap_setcell_override
Document TileMap's new 'set_cell' internal override capability
-rw-r--r--doc/classes/TileMap.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml
index fe917acaae..3c047487e0 100644
--- a/doc/classes/TileMap.xml
+++ b/doc/classes/TileMap.xml
@@ -165,6 +165,13 @@
Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
Note that data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
If you need these to be immediately updated, you can call [method update_dirty_quadrants].
+ Overriding this method also overrides it internally, allowing custom logic to be implemented when tiles are placed/removed:
+ [codeblock]
+ func set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
+ # Write your custom logic here.
+ # To call the default method:
+ .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
+ [/codeblock]
</description>
</method>
<method name="set_cellv">