From 048f4f830516c2849fbdb8afb226c3a669b32dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 22 Feb 2020 15:16:32 +0100 Subject: doc: Sync classref with apparent Variant return type changes Part of those seem bogus, methods like Array.back()/front() should return a Variant and not void. --- doc/classes/Array.xml | 36 ++++++++++++++++++++++++++++++------ doc/classes/Dictionary.xml | 4 +++- doc/classes/PackedByteArray.xml | 14 ++++++++++++++ doc/classes/PackedColorArray.xml | 14 ++++++++++++++ doc/classes/PackedIntArray.xml | 14 ++++++++++++++ doc/classes/PackedRealArray.xml | 14 ++++++++++++++ doc/classes/PackedStringArray.xml | 14 ++++++++++++++ doc/classes/PackedVector2Array.xml | 14 ++++++++++++++ doc/classes/PackedVector3Array.xml | 14 ++++++++++++++ doc/classes/Quat.xml | 4 ++++ doc/classes/Transform.xml | 4 ++-- doc/classes/Transform2D.xml | 4 ++-- 12 files changed, 139 insertions(+), 11 deletions(-) (limited to 'doc') diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 6c3e9e8fed..f99af5b091 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -83,6 +83,8 @@ + + @@ -90,7 +92,7 @@ - + Returns the last element of the array, or [code]null[/code] if the array is empty. @@ -125,6 +127,8 @@ + + Clears the array. This is equivalent to using [method resize] with a size of [code]0[/code]. @@ -156,6 +160,8 @@ + + @@ -183,7 +189,7 @@ - + Returns the first element of the array, or [code]null[/code] if the array is empty. @@ -212,6 +218,8 @@ + + @@ -221,39 +229,43 @@ + + Reverses the order of the elements in the array. - + Returns the maximum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. - + Returns the minimum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. - + Removes and returns the last element of the array. Returns [code]null[/code] if the array is empty. - + Removes and returns the first element of the array. Returns [code]null[/code] if the array is empty. + + @@ -261,6 +273,8 @@ + + @@ -268,6 +282,8 @@ + + @@ -275,6 +291,8 @@ + + @@ -293,6 +311,8 @@ + + Shuffles the array such that the items will have a random order. This method uses the global random number generator common to methods such as [method @GDScript.randi]. Call [method @GDScript.randomize] to ensure that a new seed will be used each time if you want non-reproducible shuffling. @@ -320,6 +340,8 @@ + + Sorts the array. [b]Note:[/b] Strings are sorted in alphabetical order (as opposed to natural order). This may lead to unexpected behavior when sorting an array of strings ending with a sequence of numbers. Consider the following example: @@ -331,6 +353,8 @@ + + diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 8432744ea7..6104cf165e 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -66,6 +66,8 @@ + + Clear the dictionary, removing all key/value pairs. @@ -96,7 +98,7 @@ - + diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index e9b86e93dd..b08357e278 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -97,11 +101,15 @@ + + Reverses the order of the elements in the array. + + @@ -109,6 +117,8 @@ + + @@ -116,6 +126,8 @@ + + @@ -123,6 +135,8 @@ + + diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml index 1d1614b081..06228e4dac 100644 --- a/doc/classes/PackedColorArray.xml +++ b/doc/classes/PackedColorArray.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -52,11 +56,15 @@ + + Reverses the order of the elements in the array. + + @@ -64,6 +72,8 @@ + + @@ -71,6 +81,8 @@ + + @@ -78,6 +90,8 @@ + + diff --git a/doc/classes/PackedIntArray.xml b/doc/classes/PackedIntArray.xml index 536b4d9aaf..ca98157be5 100644 --- a/doc/classes/PackedIntArray.xml +++ b/doc/classes/PackedIntArray.xml @@ -21,6 +21,8 @@ + + @@ -28,6 +30,8 @@ + + @@ -53,11 +57,15 @@ + + Reverses the order of the elements in the array. + + @@ -65,6 +73,8 @@ + + @@ -72,6 +82,8 @@ + + @@ -79,6 +91,8 @@ + + diff --git a/doc/classes/PackedRealArray.xml b/doc/classes/PackedRealArray.xml index 7a7415b279..0d40c2517f 100644 --- a/doc/classes/PackedRealArray.xml +++ b/doc/classes/PackedRealArray.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -52,11 +56,15 @@ + + Reverses the order of the elements in the array. + + @@ -64,6 +72,8 @@ + + @@ -71,6 +81,8 @@ + + @@ -78,6 +90,8 @@ + + diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml index 8824f7f8a5..9526f5899d 100644 --- a/doc/classes/PackedStringArray.xml +++ b/doc/classes/PackedStringArray.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -52,11 +56,15 @@ + + Reverses the order of the elements in the array. + + @@ -64,6 +72,8 @@ + + @@ -71,6 +81,8 @@ + + @@ -78,6 +90,8 @@ + + diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml index 339296180b..87f202357c 100644 --- a/doc/classes/PackedVector2Array.xml +++ b/doc/classes/PackedVector2Array.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -52,11 +56,15 @@ + + Reverses the order of the elements in the array. + + @@ -64,6 +72,8 @@ + + @@ -71,6 +81,8 @@ + + @@ -78,6 +90,8 @@ + + diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml index 2c5e2a63e3..7bfa684ff5 100644 --- a/doc/classes/PackedVector3Array.xml +++ b/doc/classes/PackedVector3Array.xml @@ -20,6 +20,8 @@ + + @@ -27,6 +29,8 @@ + + @@ -52,11 +56,15 @@ + + Reverses the order of the elements in the array. + + @@ -64,6 +72,8 @@ + + @@ -71,6 +81,8 @@ + + @@ -78,6 +90,8 @@ + + diff --git a/doc/classes/Quat.xml b/doc/classes/Quat.xml index f11f20f1f9..327fa882e5 100644 --- a/doc/classes/Quat.xml +++ b/doc/classes/Quat.xml @@ -132,6 +132,8 @@ + + @@ -141,6 +143,8 @@ + + diff --git a/doc/classes/Transform.xml b/doc/classes/Transform.xml index e4d367c344..72f9c5493a 100644 --- a/doc/classes/Transform.xml +++ b/doc/classes/Transform.xml @@ -149,7 +149,7 @@ - + @@ -158,7 +158,7 @@ - + diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index af93d4c654..164efd4e5e 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -151,7 +151,7 @@ - + @@ -160,7 +160,7 @@ - + -- cgit v1.2.3