mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +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`
170 lines
11 KiB
ReStructuredText
170 lines
11 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 EditorFileSystemDirectory.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_EditorFileSystemDirectory:
|
|
|
|
EditorFileSystemDirectory
|
|
=========================
|
|
|
|
**Inherits:** :ref:`Object<class_Object>`
|
|
|
|
Un directorio para el sistema de archivos de recursos.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Una variación más generalizada y de bajo nivel del concepto de directorio.
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`find_dir_index<class_EditorFileSystemDirectory_method_find_dir_index>` **(** :ref:`String<class_String>` name **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`find_file_index<class_EditorFileSystemDirectory_method_find_file_index>` **(** :ref:`String<class_String>` name **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_file<class_EditorFileSystemDirectory_method_get_file>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_file_count<class_EditorFileSystemDirectory_method_get_file_count>` **(** **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`get_file_import_is_valid<class_EditorFileSystemDirectory_method_get_file_import_is_valid>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_file_path<class_EditorFileSystemDirectory_method_get_file_path>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_file_script_class_extends<class_EditorFileSystemDirectory_method_get_file_script_class_extends>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_file_script_class_name<class_EditorFileSystemDirectory_method_get_file_script_class_name>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_file_type<class_EditorFileSystemDirectory_method_get_file_type>` **(** :ref:`int<class_int>` idx **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_name<class_EditorFileSystemDirectory_method_get_name>` **(** **)** |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_parent<class_EditorFileSystemDirectory_method_get_parent>` **(** **)** |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_path<class_EditorFileSystemDirectory_method_get_path>` **(** **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` | :ref:`get_subdir<class_EditorFileSystemDirectory_method_get_subdir>` **(** :ref:`int<class_int>` idx **)** |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_subdir_count<class_EditorFileSystemDirectory_method_get_subdir_count>` **(** **)** |const| |
|
|
+-------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_EditorFileSystemDirectory_method_find_dir_index:
|
|
|
|
- :ref:`int<class_int>` **find_dir_index** **(** :ref:`String<class_String>` name **)** |const|
|
|
|
|
Devuelve el índice del directorio con el nombre ``name`` o ``-1`` si no se encuentra.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_find_file_index:
|
|
|
|
- :ref:`int<class_int>` **find_file_index** **(** :ref:`String<class_String>` name **)** |const|
|
|
|
|
Devuelve el índice del archivo con el nombre ``name`` o ``-1`` si no se encuentra.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file:
|
|
|
|
- :ref:`String<class_String>` **get_file** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Devuelve el nombre del archivo en el índice ``idx``.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_count:
|
|
|
|
- :ref:`int<class_int>` **get_file_count** **(** **)** |const|
|
|
|
|
Devuelve el número de archivos en este directorio.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_import_is_valid:
|
|
|
|
- :ref:`bool<class_bool>` **get_file_import_is_valid** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Devuelve ``true`` si el archivo en el índice ``idx`` se importó correctamente.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_path:
|
|
|
|
- :ref:`String<class_String>` **get_file_path** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Devuelve la ruta del archivo en el índice ``idx``.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_script_class_extends:
|
|
|
|
- :ref:`String<class_String>` **get_file_script_class_extends** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Devuelve la clase base de la clase de script definida en el archivo en el índice ``idx``. Si el archivo no define una clase de script utilizando la sintaxis ``class_name``, esto devolverá una string vacía.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_script_class_name:
|
|
|
|
- :ref:`String<class_String>` **get_file_script_class_name** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Devuelve el nombre de la clase de guión definida en el archivo en el índice ``idx``. Si el archivo no define una clase de guión utilizando la sintaxis ``class_name``, esto devolverá una cadena vacía.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_file_type:
|
|
|
|
- :ref:`String<class_String>` **get_file_type** **(** :ref:`int<class_int>` idx **)** |const|
|
|
|
|
Returns the resource type of the file at index ``idx``. This returns a string such as ``"Resource"`` or ``"GDScript"``, *not* a file extension such as ``".gd"``.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_name:
|
|
|
|
- :ref:`String<class_String>` **get_name** **(** **)**
|
|
|
|
Devuelve el nombre de este directorio.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_parent:
|
|
|
|
- :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_parent** **(** **)**
|
|
|
|
Devuelve el directorio principal de este directorio o ``null`` si se llama a un directorio en ``res://`` o ``user://``.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_path:
|
|
|
|
- :ref:`String<class_String>` **get_path** **(** **)** |const|
|
|
|
|
Devuelve la ruta de este directorio.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_subdir:
|
|
|
|
- :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>` **get_subdir** **(** :ref:`int<class_int>` idx **)**
|
|
|
|
Devuelve el subdirectorio en el índice ``idx``.
|
|
|
|
----
|
|
|
|
.. _class_EditorFileSystemDirectory_method_get_subdir_count:
|
|
|
|
- :ref:`int<class_int>` **get_subdir_count** **(** **)** |const|
|
|
|
|
Devuelve el número de subdirectorios en este directorio.
|
|
|
|
.. |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.)`
|