mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-02 21:48:52 +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`
145 lines
7.2 KiB
ReStructuredText
145 lines
7.2 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 NativeScript.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_NativeScript:
|
|
|
|
NativeScript
|
|
============
|
|
|
|
**Inherits:** :ref:`Script<class_Script>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
|
|
| :ref:`String<class_String>` | :ref:`class_name<class_NativeScript_property_class_name>` | ``""`` |
|
|
+-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
|
|
| :ref:`GDNativeLibrary<class_GDNativeLibrary>` | :ref:`library<class_NativeScript_property_library>` | |
|
|
+-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
|
|
| :ref:`String<class_String>` | :ref:`script_class_icon_path<class_NativeScript_property_script_class_icon_path>` | ``""`` |
|
|
+-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
|
|
| :ref:`String<class_String>` | :ref:`script_class_name<class_NativeScript_property_script_class_name>` | ``""`` |
|
|
+-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_class_documentation<class_NativeScript_method_get_class_documentation>` **(** **)** |const| |
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_method_documentation<class_NativeScript_method_get_method_documentation>` **(** :ref:`String<class_String>` method **)** |const| |
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_property_documentation<class_NativeScript_method_get_property_documentation>` **(** :ref:`String<class_String>` path **)** |const| |
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_signal_documentation<class_NativeScript_method_get_signal_documentation>` **(** :ref:`String<class_String>` signal_name **)** |const| |
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Variant<class_Variant>` | :ref:`new<class_NativeScript_method_new>` **(** ... **)** |vararg| |
|
|
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_NativeScript_property_class_name:
|
|
|
|
- :ref:`String<class_String>` **class_name**
|
|
|
|
+-----------+-----------------------+
|
|
| *Default* | ``""`` |
|
|
+-----------+-----------------------+
|
|
| *Setter* | set_class_name(value) |
|
|
+-----------+-----------------------+
|
|
| *Getter* | get_class_name() |
|
|
+-----------+-----------------------+
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_property_library:
|
|
|
|
- :ref:`GDNativeLibrary<class_GDNativeLibrary>` **library**
|
|
|
|
+----------+--------------------+
|
|
| *Setter* | set_library(value) |
|
|
+----------+--------------------+
|
|
| *Getter* | get_library() |
|
|
+----------+--------------------+
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_property_script_class_icon_path:
|
|
|
|
- :ref:`String<class_String>` **script_class_icon_path**
|
|
|
|
+-----------+-----------------------------------+
|
|
| *Default* | ``""`` |
|
|
+-----------+-----------------------------------+
|
|
| *Setter* | set_script_class_icon_path(value) |
|
|
+-----------+-----------------------------------+
|
|
| *Getter* | get_script_class_icon_path() |
|
|
+-----------+-----------------------------------+
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_property_script_class_name:
|
|
|
|
- :ref:`String<class_String>` **script_class_name**
|
|
|
|
+-----------+------------------------------+
|
|
| *Default* | ``""`` |
|
|
+-----------+------------------------------+
|
|
| *Setter* | set_script_class_name(value) |
|
|
+-----------+------------------------------+
|
|
| *Getter* | get_script_class_name() |
|
|
+-----------+------------------------------+
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_NativeScript_method_get_class_documentation:
|
|
|
|
- :ref:`String<class_String>` **get_class_documentation** **(** **)** |const|
|
|
|
|
Devuelve la string de documentación que se estableció previamente con ``godot_nativescript_set_class_documentation``.
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_method_get_method_documentation:
|
|
|
|
- :ref:`String<class_String>` **get_method_documentation** **(** :ref:`String<class_String>` method **)** |const|
|
|
|
|
Devuelve la string de documentación que se estableció previamente con ``godot_nativescript_set_method_documentation``.
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_method_get_property_documentation:
|
|
|
|
- :ref:`String<class_String>` **get_property_documentation** **(** :ref:`String<class_String>` path **)** |const|
|
|
|
|
Devuelve la string de documentación que se estableció previamente con ``godot_nativescript_set_property_documentation``.
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_method_get_signal_documentation:
|
|
|
|
- :ref:`String<class_String>` **get_signal_documentation** **(** :ref:`String<class_String>` signal_name **)** |const|
|
|
|
|
Devuelve la string de documentación que se estableció previamente con ``godot_nativescript_set_signal_documentation``.
|
|
|
|
----
|
|
|
|
.. _class_NativeScript_method_new:
|
|
|
|
- :ref:`Variant<class_Variant>` **new** **(** ... **)** |vararg|
|
|
|
|
Constructs a new object of the base type with a script of this type already attached.
|
|
|
|
\ **Note:** Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension.
|
|
|
|
.. |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.)`
|