2
0
Эх сурвалжийг харах

Merge pull request #40442 from Calinou/doc-tile-get-shapes

Document an example dictionary returned by `TileSet.tile_get_shapes()`
Rémi Verschelde 5 жил өмнө
parent
commit
da621ab0c5

+ 11 - 1
doc/classes/TileSet.xml

@@ -478,7 +478,17 @@
 			<argument index="0" name="id" type="int">
 			<argument index="0" name="id" type="int">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				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]
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="tile_get_texture" qualifiers="const">
 		<method name="tile_get_texture" qualifiers="const">