diff options
author | kobewi <kobewi4e@gmail.com> | 2021-11-03 14:58:12 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-16 15:04:39 +0200 |
commit | 7305390fdcdfc3fa4c6e628fc1d5bb15160c7b94 (patch) | |
tree | 789fed7bca687edaf22e9bf3151cf27d29981d9f /doc/classes | |
parent | 54a9cd9d5d2810360ae8b72ef793dd7050bbc032 (diff) |
Add a method to get TileData from a cell
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/TileMap.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 4266a414ce..4b4a31f4b9 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -107,6 +107,16 @@ Returns the tile source ID of the cell on layer [param layer] at coordinates [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy]. </description> </method> + <method name="get_cell_tile_data" qualifiers="const"> + <return type="TileData" /> + <param index="0" name="layer" type="int" /> + <param index="1" name="coords" type="Vector2i" /> + <param index="2" name="use_proxies" type="bool" default="false" /> + <description> + Returns the [TileData] object associated with the given cell, or [code]null[/code] if the cell is not a [TileSetAtlasSource]. + If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy]. + </description> + </method> <method name="get_coords_for_body_rid"> <return type="Vector2i" /> <param index="0" name="body" type="RID" /> |