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.
This commit is contained in:
@ -11,24 +11,20 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="is_playing" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if an animation is currently being played.
|
||||
</description>
|
||||
</method>
|
||||
<method name="play">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="anim" type="StringName" default="&""">
|
||||
</argument>
|
||||
<return type="void" />
|
||||
<argument index="0" name="anim" type="StringName" default="&""" />
|
||||
<description>
|
||||
Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
<return type="void">
|
||||
</return>
|
||||
<return type="void" />
|
||||
<description>
|
||||
Stops the current animation (does not reset the frame counter).
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user