doc: Sync classref for Packed{Int,Float}{32,64}Array additions

This commit is contained in:
Rémi Verschelde
2020-02-25 18:10:58 +01:00
parent 2ead439370
commit a7e1df4b1d
33 changed files with 360 additions and 89 deletions

View File

@@ -18,7 +18,7 @@
var polygon = NavigationPolygon.new()
var vertices = PackedVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)])
polygon.set_vertices(vertices)
var indices = PackedIntArray(0, 3, 1)
var indices = PackedInt32Array(0, 3, 1)
polygon.add_polygon(indices)
$NavigationPolygonInstance.navpoly = polygon
[/codeblock]
@@ -49,7 +49,7 @@
<method name="add_polygon">
<return type="void">
</return>
<argument index="0" name="polygon" type="PackedIntArray">
<argument index="0" name="polygon" type="PackedInt32Array">
</argument>
<description>
Adds a polygon using the indices of the vertices you get when calling [method get_vertices].
@@ -86,12 +86,12 @@
</description>
</method>
<method name="get_polygon">
<return type="PackedIntArray">
<return type="PackedInt32Array">
</return>
<argument index="0" name="idx" type="int">
</argument>
<description>
Returns a [PackedIntArray] containing the indices of the vertices of a created polygon.
Returns a [PackedInt32Array] containing the indices of the vertices of a created polygon.
</description>
</method>
<method name="get_polygon_count" qualifiers="const">