From c8d0c61d912f40709b38857972299096ba511a7b Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 5 Apr 2019 10:27:38 -0300 Subject: [PATCH] Document TileMap's new 'set_cell' internal override capability --- doc/classes/TileMap.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index fe917acaaec..3c047487e07 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]