mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
141 lines
5.3 KiB
ReStructuredText
141 lines
5.3 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_GodotInstance:
|
||
|
||
GodotInstance
|
||
=============
|
||
|
||
**Успадковує:** :ref:`Object<class_Object>`
|
||
|
||
Provides access to an embedded Godot instance.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Опис
|
||
--------
|
||
|
||
GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API ``libgodot_create_godot_instance``. Only one may be created per process.
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Методи
|
||
------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| |void| | :ref:`focus_in<class_GodotInstance_method_focus_in>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| |void| | :ref:`focus_out<class_GodotInstance_method_focus_out>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`is_started<class_GodotInstance_method_is_started>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`iteration<class_GodotInstance_method_iteration>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| |void| | :ref:`pause<class_GodotInstance_method_pause>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| |void| | :ref:`resume<class_GodotInstance_method_resume>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`start<class_GodotInstance_method_start>`\ (\ ) |
|
||
+-------------------------+----------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описи методів
|
||
--------------------------
|
||
|
||
.. _class_GodotInstance_method_focus_in:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **focus_in**\ (\ ) :ref:`🔗<class_GodotInstance_method_focus_in>`
|
||
|
||
Notifies the instance that it is now in focus.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_focus_out:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **focus_out**\ (\ ) :ref:`🔗<class_GodotInstance_method_focus_out>`
|
||
|
||
Notifies the instance that it is now not in focus.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_is_started:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **is_started**\ (\ ) :ref:`🔗<class_GodotInstance_method_is_started>`
|
||
|
||
Returns ``true`` if this instance has been fully started.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_iteration:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **iteration**\ (\ ) :ref:`🔗<class_GodotInstance_method_iteration>`
|
||
|
||
Runs a single iteration of the main loop. Returns ``true`` if the engine is attempting to quit.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_pause:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **pause**\ (\ ) :ref:`🔗<class_GodotInstance_method_pause>`
|
||
|
||
Notifies the instance that it is going to be paused.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_resume:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **resume**\ (\ ) :ref:`🔗<class_GodotInstance_method_resume>`
|
||
|
||
Notifies the instance that it is being resumed.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GodotInstance_method_start:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **start**\ (\ ) :ref:`🔗<class_GodotInstance_method_start>`
|
||
|
||
Finishes this instance's startup sequence. Returns ``true`` on success.
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (Зазвичай, цей метод перевизначається користувачем, щоб він мав вплив.)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (Цей метод не має побічних ефектів. Не змінює ніяку змінну екземпляра об'єкта.)`
|
||
.. |vararg| replace:: :abbr:`vararg (Цей метод приймає будь-яке число аргументів після описаних тут.)`
|
||
.. |constructor| replace:: :abbr:`constructor (Цей метод використовується для побудови типів.)`
|
||
.. |static| replace:: :abbr:`static (Цей метод не потребує екземпляра для виклику, його можна викликати безпосередньо за допомогою назви класу.)`
|
||
.. |operator| replace:: :abbr:`operator (Цей метод описує дійсний оператор для взаємодії з цим типом як з лівим операндом.)`
|
||
.. |bitfield| replace:: :abbr:`BitField (Це значення є цілим числом, складеним у вигляді бітової маски з наступних прапорів.)`
|
||
.. |void| replace:: :abbr:`void (Значення не повертається.)`
|