Merge pull request #24804 from timoschwarzer/doc-gdscript
Add missing documentation for @GDScript
This commit is contained in:
commit
55bfb05df2
1 changed files with 19 additions and 2 deletions
|
@ -415,6 +415,21 @@
|
||||||
<return type="Array">
|
<return type="Array">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Returns an array of dictionaries representing the current call stack.
|
||||||
|
[codeblock]
|
||||||
|
func _ready():
|
||||||
|
foo()
|
||||||
|
|
||||||
|
func foo():
|
||||||
|
bar()
|
||||||
|
|
||||||
|
func bar():
|
||||||
|
print(get_stack())
|
||||||
|
[/codeblock]
|
||||||
|
would print
|
||||||
|
[codeblock]
|
||||||
|
[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="hash">
|
<method name="hash">
|
||||||
|
@ -488,7 +503,7 @@
|
||||||
<argument index="0" name="s" type="float">
|
<argument index="0" name="s" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns True/False whether [code]s[/code] is an infinity value (either positive infinity or negative infinity).
|
Returns whether [code]s[/code] is an infinity value (either positive infinity or negative infinity).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_instance_valid">
|
<method name="is_instance_valid">
|
||||||
|
@ -497,6 +512,7 @@
|
||||||
<argument index="0" name="instance" type="Object">
|
<argument index="0" name="instance" type="Object">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Returns whether [code]instance[/code] is a valid object (e.g. has not been deleted from memory).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_nan">
|
<method name="is_nan">
|
||||||
|
@ -505,7 +521,7 @@
|
||||||
<argument index="0" name="s" type="float">
|
<argument index="0" name="s" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns True/False whether [code]s[/code] is a NaN (Not-A-Number) value.
|
Returns whether [code]s[/code] is a NaN (Not-A-Number) value.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="len">
|
<method name="len">
|
||||||
|
@ -690,6 +706,7 @@
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Like [method print], but prints only when used in debug mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="print_stack">
|
<method name="print_stack">
|
||||||
|
|
Loading…
Reference in a new issue