mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03: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,29 +10,25 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_resource">
|
||||
<return type="Resource">
|
||||
</return>
|
||||
<return type="Resource" />
|
||||
<description>
|
||||
Returns the loaded resource if the load operation completed successfully, [code]null[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_stage" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns the load stage. The total amount of stages can be queried with [method get_stage_count].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_stage_count" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns the total amount of stages (calls to [method poll]) needed to completely load this resource.
|
||||
</description>
|
||||
</method>
|
||||
<method name="poll">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<return type="int" enum="Error" />
|
||||
<description>
|
||||
Polls the loading operation, i.e. loads a data chunk up to the next stage.
|
||||
Returns [constant OK] if the poll is successful but the load operation has not finished yet (intermediate stage). This means [method poll] will have to be called again until the last stage is completed.
|
||||
@@ -41,8 +37,7 @@
|
||||
</description>
|
||||
</method>
|
||||
<method name="wait">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<return type="int" enum="Error" />
|
||||
<description>
|
||||
Polls the loading operation successively until the resource is completely loaded or a [method poll] fails.
|
||||
Returns [constant ERR_FILE_EOF] if the load operation has completed successfully. The loaded resource can be obtained by calling [method get_resource].
|
||||
|
||||
Reference in New Issue
Block a user