mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +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:
@@ -12,25 +12,21 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="is_stopped" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the timer is stopped.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="time_sec" type="float" default="-1">
|
||||
</argument>
|
||||
<return type="void" />
|
||||
<argument index="0" name="time_sec" type="float" default="-1" />
|
||||
<description>
|
||||
Starts the timer. Sets [code]wait_time[/code] to [code]time_sec[/code] if [code]time_sec > 0[/code]. This also resets the remaining time to [code]wait_time[/code].
|
||||
[b]Note:[/b] this method will not resume a paused timer. See [member paused].
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
<return type="void">
|
||||
</return>
|
||||
<return type="void" />
|
||||
<description>
|
||||
Stops the timer.
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user