From 60bb80505f538e320e8c81a5af286347e83757a1 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 16 Jul 2020 09:40:51 +0200 Subject: [PATCH] Document an example dictionary returned by `TileSet.tile_get_shapes()` --- doc/classes/TileSet.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index 9a78e45d46a..4991a1e58b9 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -478,7 +478,17 @@ - Returns an array of the tile's shapes. + Returns an array of dictionaries describing the tile's shapes. + [b]Dictionary structure in the array returned by this method:[/b] + [codeblock] + { + "autotile_coord": Vector2, + "one_way": bool, + "one_way_margin": int, + "shape": CollisionShape2D, + "shape_transform": Transform2D, + } + [/codeblock]