diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-13 14:48:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 14:48:16 +0200 |
commit | a3dd18b12e13938492e571cfabf0ec514bf97c75 (patch) | |
tree | 4ff9e9777a1e72f8a4f65c8e432e8d50c1a9c354 /doc/classes | |
parent | d0c2ac8a0edefaed11c9307fe5054b5bc9482f8b (diff) | |
parent | 75e3f6b732005ba3a2499656e3623f5716beaa6b (diff) |
Merge pull request #39976 from aaronfranke/tilemap-vec2i
Update TileMap to use Vector2i
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/TileMap.xml | 5 | ||||
-rw-r--r-- | doc/classes/TileSet.xml | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 76d8f1840f..fd52a28486 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -90,9 +90,10 @@ <method name="map_to_world" qualifiers="const"> <return type="Vector2"> </return> - <argument index="0" name="map_position" type="Vector2"> + <argument index="0" name="map_position" type="Vector2i"> </argument> <description> + Returns the local position corresponding to the given tilemap (grid-based) coordinates. </description> </method> <method name="set_cell"> @@ -107,6 +108,7 @@ <argument index="3" name="alternative_tile" type="int" default="-1"> </argument> <description> + Sets the tile index for the cell given by a Vector2i. </description> </method> <method name="update_dirty_quadrants"> @@ -137,6 +139,7 @@ <signals> <signal name="changed"> <description> + Emitted when the [TileSet] of this TileMap changes. </description> </signal> </signals> diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index 13c6b9070a..ff68a017a1 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -298,12 +298,15 @@ </members> <constants> <constant name="TILE_SHAPE_SQUARE" value="0" enum="TileShape"> + Orthogonal orientation mode. </constant> <constant name="TILE_SHAPE_ISOMETRIC" value="1" enum="TileShape"> + Isometric orientation mode. </constant> <constant name="TILE_SHAPE_HALF_OFFSET_SQUARE" value="2" enum="TileShape"> </constant> <constant name="TILE_SHAPE_HEXAGON" value="3" enum="TileShape"> + Hexagon orientation mode. </constant> <constant name="TILE_LAYOUT_STACKED" value="0" enum="TileLayout"> </constant> |