Write GDScript documentation

This commit is contained in:
Martin Chuckeles 2016-03-05 14:15:11 +01:00
parent 5a9b18b665
commit cd1184d56c
1 changed files with 10 additions and 1 deletions

View File

@ -490,6 +490,7 @@
<argument index="1" name="..." type="Variant"> <argument index="1" name="..." type="Variant">
</argument> </argument>
<description> <description>
Print one or more arguments to the console with a space between each argument.
</description> </description>
</method> </method>
<method name="printerr"> <method name="printerr">
@ -520,7 +521,7 @@
<argument index="0" name="var" type="Variant"> <argument index="0" name="var" type="Variant">
</argument> </argument>
<description> <description>
Converts the value of a variable to a String. Converts a value to a string that can later be parsed using str2var.
</description> </description>
</method> </method>
<method name="str2var"> <method name="str2var">
@ -529,6 +530,7 @@
<argument index="0" name="string" type="String"> <argument index="0" name="string" type="String">
</argument> </argument>
<description> <description>
Converts a string that was returned by var2str to the original value.
</description> </description>
</method> </method>
<method name="var2bytes"> <method name="var2bytes">
@ -537,6 +539,7 @@
<argument index="0" name="var" type="Variant"> <argument index="0" name="var" type="Variant">
</argument> </argument>
<description> <description>
Encodes a variable to a byte array.
</description> </description>
</method> </method>
<method name="bytes2var"> <method name="bytes2var">
@ -545,6 +548,7 @@
<argument index="0" name="bytes" type="RawArray"> <argument index="0" name="bytes" type="RawArray">
</argument> </argument>
<description> <description>
Decodes a byte array back to a variable.
</description> </description>
</method> </method>
<method name="range"> <method name="range">
@ -604,6 +608,7 @@
<argument index="3" name="a8" type="int"> <argument index="3" name="a8" type="int">
</argument> </argument>
<description> <description>
Makes a color from red, green, blue and alpha. Arguments can range from 0 to 255.
</description> </description>
</method> </method>
<method name="print_stack"> <method name="print_stack">
@ -619,6 +624,7 @@
<argument index="0" name="instance_id" type="int"> <argument index="0" name="instance_id" type="int">
</argument> </argument>
<description> <description>
Get an object by its ID.
</description> </description>
</method> </method>
<method name="preload"> <method name="preload">
@ -627,6 +633,7 @@
<argument index="0" name="path" type="String"> <argument index="0" name="path" type="String">
</argument> </argument>
<description> <description>
Preload and get a resource. The resource is loaded during script parsing.
</description> </description>
</method> </method>
<method name="yield"> <method name="yield">
@ -637,6 +644,7 @@
<argument index="1" name="signal" type="String"> <argument index="1" name="signal" type="String">
</argument> </argument>
<description> <description>
Stops function execution and return current state. Call resume on the state to resume execution.
</description> </description>
</method> </method>
<method name="assert"> <method name="assert">
@ -645,6 +653,7 @@
<argument index="0" name="condition" type="bool"> <argument index="0" name="condition" type="bool">
</argument> </argument>
<description> <description>
If the condition is false, generates an error.
</description> </description>
</method> </method>
</methods> </methods>