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:
Rémi Verschelde
2021-07-30 15:28:05 +02:00
parent a1c19b9a1e
commit 7adf4cc9b5
408 changed files with 14025 additions and 28050 deletions
+7 -14
View File
@@ -10,35 +10,28 @@
</tutorials>
<methods>
<method name="generate_triangle_mesh" qualifiers="const">
<return type="TriangleMesh">
</return>
<return type="TriangleMesh" />
<description>
Returns a [TriangleMesh] with the sprite's vertices following its current configuration (such as its [member axis] and [member pixel_size]).
</description>
</method>
<method name="get_draw_flag" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags">
</argument>
<return type="bool" />
<argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags" />
<description>
Returns the value of the specified flag.
</description>
</method>
<method name="get_item_rect" qualifiers="const">
<return type="Rect2">
</return>
<return type="Rect2" />
<description>
Returns the rectangle representing this sprite.
</description>
</method>
<method name="set_draw_flag">
<return type="void">
</return>
<argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<return type="void" />
<argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags" />
<argument index="1" name="enabled" type="bool" />
<description>
If [code]true[/code], the specified flag will be enabled. See [enum SpriteBase3D.DrawFlags] for a list of flags.
</description>