You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring
having all details in the method's description.
Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.
(cherry picked from commit 7adf4cc9b5)
This commit is contained in:
@@ -10,20 +10,16 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="is_valid" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<argument index="0" name="extended_check" type="bool" default="false">
|
||||
</argument>
|
||||
<return type="bool" />
|
||||
<argument index="0" name="extended_check" type="bool" default="false" />
|
||||
<description>
|
||||
Check whether the function call may be resumed. This is not the case if the function state was already resumed.
|
||||
If [code]extended_check[/code] is enabled, it also checks if the associated script and object still exist. The extended check is done in debug mode as part of [method GDScriptFunctionState.resume], but you can use this if you know you may be trying to resume without knowing for sure the object and/or script have survived up to that point.
|
||||
</description>
|
||||
</method>
|
||||
<method name="resume">
|
||||
<return type="Variant">
|
||||
</return>
|
||||
<argument index="0" name="arg" type="Variant" default="null">
|
||||
</argument>
|
||||
<return type="Variant" />
|
||||
<argument index="0" name="arg" type="Variant" default="null" />
|
||||
<description>
|
||||
Resume execution of the yielded function call.
|
||||
If handed an argument, return the argument from the [method @GDScript.yield] call in the yielded function call. You can pass e.g. an [Array] to hand multiple arguments.
|
||||
@@ -33,8 +29,7 @@
|
||||
</methods>
|
||||
<signals>
|
||||
<signal name="completed">
|
||||
<argument index="0" name="result" type="Variant">
|
||||
</argument>
|
||||
<argument index="0" name="result" type="Variant" />
|
||||
<description>
|
||||
</description>
|
||||
</signal>
|
||||
|
||||
Reference in New Issue
Block a user