summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-26 16:42:35 +0200
committerGitHub <noreply@github.com>2020-07-26 16:42:35 +0200
commitda621ab0c55884597e9c8db5160e1c057773772f (patch)
treec70d309ebf3417aeec4356a15a9b6ca439fbdbc6 /doc/classes
parentdf6f867806cd450f757a023e5e78adbf80246bc2 (diff)
parent60bb80505f538e320e8c81a5af286347e83757a1 (diff)
Merge pull request #40442 from Calinou/doc-tile-get-shapes
Document an example dictionary returned by `TileSet.tile_get_shapes()`
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/TileSet.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml
index 9a78e45d46..4991a1e58b 100644
--- a/doc/classes/TileSet.xml
+++ b/doc/classes/TileSet.xml
@@ -478,7 +478,17 @@
<argument index="0" name="id" type="int">
</argument>
<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>
</method>
<method name="tile_get_texture" qualifiers="const">