mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Allow comparing equality between builtin types and null
This commit is contained in:
@@ -66,6 +66,11 @@
|
||||
Cast a float value to an integer value, this method simply removes the number fractions (i.e. rounds [code]from[/code] towards zero), so for example [code]int(2.7)[/code] will be equals to 2, [code]int(0.1)[/code] will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. This operation is also called truncation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator !=" qualifiers="operator">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator !=" qualifiers="operator">
|
||||
<return type="bool" />
|
||||
<argument index="0" name="right" type="float" />
|
||||
@@ -172,13 +177,6 @@
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator +" qualifiers="operator">
|
||||
<return type="float" />
|
||||
<argument index="0" name="right" type="float" />
|
||||
<description>
|
||||
Adds an [int] to a [float]. The result is a [float].
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator +" qualifiers="operator">
|
||||
<return type="int" />
|
||||
<argument index="0" name="right" type="int" />
|
||||
@@ -186,6 +184,13 @@
|
||||
Adds two integers.
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator +" qualifiers="operator">
|
||||
<return type="float" />
|
||||
<argument index="0" name="right" type="float" />
|
||||
<description>
|
||||
Adds an [int] to a [float]. The result is a [float].
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator -" qualifiers="operator">
|
||||
<return type="float" />
|
||||
<argument index="0" name="right" type="float" />
|
||||
@@ -260,6 +265,11 @@
|
||||
Returns [code]true[/code] the left integer is less than or equal to the right one.
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator ==" qualifiers="operator">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="operator ==" qualifiers="operator">
|
||||
<return type="bool" />
|
||||
<argument index="0" name="right" type="float" />
|
||||
|
||||
Reference in New Issue
Block a user