mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-08 06:10:12 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
144 lines
7.1 KiB
ReStructuredText
144 lines
7.1 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the PoolIntArray.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_PoolIntArray:
|
|
|
|
PoolIntArray
|
|
============
|
|
|
|
A pooled :ref:`Array<class_Array>` of integers (:ref:`int<class_int>`).
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
An :ref:`Array<class_Array>` specifically designed to hold integer values (:ref:`int<class_int>`). Optimized for memory usage, does not fragment the memory.
|
|
|
|
\ **Note:** This type is passed by value and not by reference.
|
|
|
|
\ **Note:** This type is limited to signed 32-bit integers, which means it can only take values in the interval ``[-2^31, 2^31 - 1]``, i.e. ``[-2147483648, 2147483647]``. Exceeding those bounds will wrap around. In comparison, :ref:`int<class_int>` uses signed 64-bit integers which can hold much larger values.
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`PoolIntArray<class_PoolIntArray>` | :ref:`PoolIntArray<class_PoolIntArray_method_PoolIntArray>` **(** :ref:`Array<class_Array>` from **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`append<class_PoolIntArray_method_append>` **(** :ref:`int<class_int>` integer **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`append_array<class_PoolIntArray_method_append_array>` **(** :ref:`PoolIntArray<class_PoolIntArray>` array **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`empty<class_PoolIntArray_method_empty>` **(** **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`insert<class_PoolIntArray_method_insert>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`invert<class_PoolIntArray_method_invert>` **(** **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`push_back<class_PoolIntArray_method_push_back>` **(** :ref:`int<class_int>` integer **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove<class_PoolIntArray_method_remove>` **(** :ref:`int<class_int>` idx **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`resize<class_PoolIntArray_method_resize>` **(** :ref:`int<class_int>` idx **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set<class_PoolIntArray_method_set>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`size<class_PoolIntArray_method_size>` **(** **)** |
|
|
+-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_PoolIntArray_method_PoolIntArray:
|
|
|
|
- :ref:`PoolIntArray<class_PoolIntArray>` **PoolIntArray** **(** :ref:`Array<class_Array>` from **)**
|
|
|
|
Constructs a new ``PoolIntArray``. Optionally, you can pass in a generic :ref:`Array<class_Array>` that will be converted.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_append:
|
|
|
|
- void **append** **(** :ref:`int<class_int>` integer **)**
|
|
|
|
Concatena un elemento al final del array (alias de :ref:`push_back<class_PoolIntArray_method_push_back>`).
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_append_array:
|
|
|
|
- void **append_array** **(** :ref:`PoolIntArray<class_PoolIntArray>` array **)**
|
|
|
|
Appends a ``PoolIntArray`` at the end of this array.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_empty:
|
|
|
|
- :ref:`bool<class_bool>` **empty** **(** **)**
|
|
|
|
Devuelve ``true`` si el array es vacio.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_insert:
|
|
|
|
- :ref:`int<class_int>` **insert** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)**
|
|
|
|
Inserts a new int at a given position in the array. The position must be valid, or at the end of the array (``idx == size()``).
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_invert:
|
|
|
|
- void **invert** **(** **)**
|
|
|
|
Invierte el orden de los elementos en el array.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_push_back:
|
|
|
|
- void **push_back** **(** :ref:`int<class_int>` integer **)**
|
|
|
|
Añade un valor al array.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_remove:
|
|
|
|
- void **remove** **(** :ref:`int<class_int>` idx **)**
|
|
|
|
Elimina un elemento del array por indice.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_resize:
|
|
|
|
- void **resize** **(** :ref:`int<class_int>` idx **)**
|
|
|
|
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
|
|
|
|
\ **Note:** Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_set:
|
|
|
|
- void **set** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)**
|
|
|
|
Changes the int at the given index.
|
|
|
|
----
|
|
|
|
.. _class_PoolIntArray_method_size:
|
|
|
|
- :ref:`int<class_int>` **size** **(** **)**
|
|
|
|
Devuelve el tamaño del array.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|