Files
godot-docs-l10n/classes/es/class_godotsharp.rst
Rémi Verschelde cf78697eea Add localized class reference as pre-generated RST files
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`
2021-12-21 16:07:55 +01:00

116 lines
5.9 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 GodotSharp.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_GodotSharp:
GodotSharp
==========
**Inherits:** :ref:`Object<class_Object>`
Bridge between Godot and the Mono runtime (Mono-enabled builds only).
Descripción
----------------------
This class is a bridge between Godot and the Mono runtime. It exposes several low-level operations and is only available in Mono-enabled Godot builds.
See also :ref:`CSharpScript<class_CSharpScript>`.
Métodos
--------------
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`attach_thread<class_GodotSharp_method_attach_thread>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`detach_thread<class_GodotSharp_method_detach_thread>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_domain_id<class_GodotSharp_method_get_domain_id>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_scripts_domain_id<class_GodotSharp_method_get_scripts_domain_id>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_domain_finalizing_for_unload<class_GodotSharp_method_is_domain_finalizing_for_unload>` **(** :ref:`int<class_int>` domain_id **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_runtime_initialized<class_GodotSharp_method_is_runtime_initialized>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_runtime_shutting_down<class_GodotSharp_method_is_runtime_shutting_down>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_scripts_domain_loaded<class_GodotSharp_method_is_scripts_domain_loaded>` **(** **)** |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
Descripciones de Métodos
------------------------------------------------
.. _class_GodotSharp_method_attach_thread:
- void **attach_thread** **(** **)**
Attaches the current thread to the Mono runtime.
----
.. _class_GodotSharp_method_detach_thread:
- void **detach_thread** **(** **)**
Detaches the current thread from the Mono runtime.
----
.. _class_GodotSharp_method_get_domain_id:
- :ref:`int<class_int>` **get_domain_id** **(** **)**
Returns the current MonoDomain ID.
\ **Note:** The Mono runtime must be initialized for this method to work (use :ref:`is_runtime_initialized<class_GodotSharp_method_is_runtime_initialized>` to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
----
.. _class_GodotSharp_method_get_scripts_domain_id:
- :ref:`int<class_int>` **get_scripts_domain_id** **(** **)**
Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as :ref:`get_domain_id<class_GodotSharp_method_get_domain_id>`, unless the scripts domain isn't loaded.
\ **Note:** The Mono runtime must be initialized for this method to work (use :ref:`is_runtime_initialized<class_GodotSharp_method_is_runtime_initialized>` to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
----
.. _class_GodotSharp_method_is_domain_finalizing_for_unload:
- :ref:`bool<class_bool>` **is_domain_finalizing_for_unload** **(** :ref:`int<class_int>` domain_id **)**
Returns ``true`` if the domain is being finalized, ``false`` otherwise.
----
.. _class_GodotSharp_method_is_runtime_initialized:
- :ref:`bool<class_bool>` **is_runtime_initialized** **(** **)**
Returns ``true`` if the Mono runtime is initialized, ``false`` otherwise.
----
.. _class_GodotSharp_method_is_runtime_shutting_down:
- :ref:`bool<class_bool>` **is_runtime_shutting_down** **(** **)**
Returns ``true`` if the Mono runtime is shutting down, ``false`` otherwise.
----
.. _class_GodotSharp_method_is_scripts_domain_loaded:
- :ref:`bool<class_bool>` **is_scripts_domain_loaded** **(** **)**
Returns ``true`` if the scripts domain is loaded, ``false`` otherwise.
.. |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.)`