Merge pull request #5027 from J08nY/gdscript
Add Array.find_last() and Array.count()
This commit is contained in:
commit
4b0bae9799
4 changed files with 55 additions and 0 deletions
|
|
@ -4340,6 +4340,15 @@
|
|||
Clear the array (resize to 0).
|
||||
</description>
|
||||
</method>
|
||||
<method name="count">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="value" type="var">
|
||||
</argument>
|
||||
<description>
|
||||
Return the amount of times an element is in the array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="empty">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
|
@ -4363,6 +4372,15 @@
|
|||
Searches the array for a value and returns its index or -1 if not found.
|
||||
</description>
|
||||
</method>
|
||||
<method name="find_last">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="value" type="var">
|
||||
</argument>
|
||||
<description>
|
||||
Searches the array in reverse order for a value and returns its index or -1 if not found.
|
||||
</description>
|
||||
</method>
|
||||
<method name="hash">
|
||||
<return type="int">
|
||||
</return>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue