Update TileMap to use Vector2i instead of two ints
This commit is contained in:
parent
ee44982c45
commit
75e3f6b732
4 changed files with 11 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue