Fix type hint for the seed argument

Closes #5260.
This commit is contained in:
Rémi Verschelde 2016-06-18 01:18:06 +02:00
parent aebad5de5f
commit 7723579237
2 changed files with 24 additions and 6 deletions

View File

@ -313,7 +313,7 @@
<method name="seed"> <method name="seed">
<return type="Nil"> <return type="Nil">
</return> </return>
<argument index="0" name="seed" type="float"> <argument index="0" name="seed" type="int">
</argument> </argument>
<description> <description>
Set seed for the random number generator. Set seed for the random number generator.
@ -322,7 +322,7 @@
<method name="rand_seed"> <method name="rand_seed">
<return type="Array"> <return type="Array">
</return> </return>
<argument index="0" name="seed" type="float"> <argument index="0" name="seed" type="int">
</argument> </argument>
<description> <description>
Random from seed, pass a seed and an array with both number and new seed is returned. Random from seed, pass a seed and an array with both number and new seed is returned.
@ -12445,6 +12445,14 @@ This approximation makes straight segments between each point, then subdivides t
else, empty String "". else, empty String "".
</description> </description>
</method> </method>
<method name="get_sha256" qualifiers="const">
<return type="String">
</return>
<argument index="0" name="path" type="String">
</argument>
<description>
</description>
</method>
<method name="get_endian_swap"> <method name="get_endian_swap">
<return type="bool"> <return type="bool">
</return> </return>
@ -37594,6 +37602,12 @@ This method controls whether the position between two cached points is interpola
Return the right side of the string from a given position. Return the right side of the string from a given position.
</description> </description>
</method> </method>
<method name="sha256_text">
<return type="String">
</return>
<description>
</description>
</method>
<method name="split"> <method name="split">
<return type="StringArray"> <return type="StringArray">
</return> </return>
@ -41177,6 +41191,8 @@ This method controls whether the position between two cached points is interpola
</theme_item> </theme_item>
<theme_item name="hseparation" type="int"> <theme_item name="hseparation" type="int">
</theme_item> </theme_item>
<theme_item name="draw_relationship_lines" type="int">
</theme_item>
<theme_item name="button_margin" type="int"> <theme_item name="button_margin" type="int">
</theme_item> </theme_item>
<theme_item name="title_button_color" type="Color"> <theme_item name="title_button_color" type="Color">
@ -41191,6 +41207,8 @@ This method controls whether the position between two cached points is interpola
</theme_item> </theme_item>
<theme_item name="font_color" type="Color"> <theme_item name="font_color" type="Color">
</theme_item> </theme_item>
<theme_item name="relationship_line_color" type="Color">
</theme_item>
<theme_item name="drop_position_color" type="Color"> <theme_item name="drop_position_color" type="Color">
</theme_item> </theme_item>
<theme_item name="arrow" type="Texture"> <theme_item name="arrow" type="Texture">

View File

@ -1309,12 +1309,12 @@ MethodInfo GDFunctions::get_info(Function p_func) {
return mi; return mi;
} break; } break;
case MATH_SEED: { case MATH_SEED: {
MethodInfo mi("seed",PropertyInfo(Variant::REAL,"seed")); MethodInfo mi("seed",PropertyInfo(Variant::INT,"seed"));
mi.return_val.type=Variant::NIL; mi.return_val.type=Variant::NIL;
return mi; return mi;
} break; } break;
case MATH_RANDSEED: { case MATH_RANDSEED: {
MethodInfo mi("rand_seed",PropertyInfo(Variant::REAL,"seed")); MethodInfo mi("rand_seed",PropertyInfo(Variant::INT,"seed"));
mi.return_val.type=Variant::ARRAY; mi.return_val.type=Variant::ARRAY;
return mi; return mi;
} break; } break;