mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
Sync classref with current source
This commit is contained in:
@@ -57,10 +57,11 @@ Tutorials
|
||||
---------
|
||||
|
||||
- :doc:`../getting_started/step_by_step/scripting`
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
|
||||
.. _class_Script_source_code:
|
||||
.. _class_Script_source_code:
|
||||
|
||||
- :ref:`String<class_String>` **source_code**
|
||||
|
||||
@@ -75,49 +76,49 @@ The script source code or an empty string if source code is not available. When
|
||||
Method Descriptions
|
||||
-------------------
|
||||
|
||||
.. _class_Script_can_instance:
|
||||
.. _class_Script_can_instance:
|
||||
|
||||
- :ref:`bool<class_bool>` **can_instance** **(** **)** const
|
||||
|
||||
Returns ``true`` if the script can be instanced.
|
||||
|
||||
.. _class_Script_get_base_script:
|
||||
.. _class_Script_get_base_script:
|
||||
|
||||
- :ref:`Script<class_Script>` **get_base_script** **(** **)** const
|
||||
|
||||
Returns the script directly inherited by this script.
|
||||
|
||||
.. _class_Script_get_instance_base_type:
|
||||
.. _class_Script_get_instance_base_type:
|
||||
|
||||
- :ref:`String<class_String>` **get_instance_base_type** **(** **)** const
|
||||
|
||||
Returns the script's base type.
|
||||
|
||||
.. _class_Script_has_script_signal:
|
||||
.. _class_Script_has_script_signal:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_script_signal** **(** :ref:`String<class_String>` signal_name **)** const
|
||||
|
||||
Returns ``true`` if the script, or a base class, defines a signal with the given name.
|
||||
|
||||
.. _class_Script_has_source_code:
|
||||
.. _class_Script_has_source_code:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_source_code** **(** **)** const
|
||||
|
||||
Returns ``true`` if the script contains non-empty source code.
|
||||
|
||||
.. _class_Script_instance_has:
|
||||
.. _class_Script_instance_has:
|
||||
|
||||
- :ref:`bool<class_bool>` **instance_has** **(** :ref:`Object<class_Object>` base_object **)** const
|
||||
|
||||
Returns ``true`` if ``base_object`` is an instance of this script.
|
||||
|
||||
.. _class_Script_is_tool:
|
||||
.. _class_Script_is_tool:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_tool** **(** **)** const
|
||||
|
||||
Returns ``true`` if the script is a tool script. A tool script can run in the editor.
|
||||
|
||||
.. _class_Script_reload:
|
||||
.. _class_Script_reload:
|
||||
|
||||
- :ref:`Error<enum_@GlobalScope_Error>` **reload** **(** :ref:`bool<class_bool>` keep_state=false **)**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user