Commit other files changed by file_format.sh
This commit is contained in:
parent
d8b65461e3
commit
9986439352
60 changed files with 73 additions and 73 deletions
|
@ -227,10 +227,10 @@
|
|||
<description>
|
||||
Returns [code]true[/code] if the array contains the given value.
|
||||
[codeblock]
|
||||
["inside", 7].has("inside") == true
|
||||
["inside", 7].has("outside") == false
|
||||
["inside", 7].has(7) == true
|
||||
["inside", 7].has("7") == false
|
||||
print(["inside", 7].has("inside")) # True
|
||||
print(["inside", 7].has("outside")) # False
|
||||
print(["inside", 7].has(7)) # True
|
||||
print(["inside", 7].has("7")) # False
|
||||
[/codeblock]
|
||||
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator as follows:
|
||||
[codeblock]
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</return>
|
||||
<description>
|
||||
Updates the collision information for the ray. Use this method to update the collision information immediately instead of waiting for the next [code]_physics_process[/code] call, for example if the ray or its parent has changed state.
|
||||
[b]Note:[/b] [code]enabled == true[/code] is not required for this to work.
|
||||
[b]Note:[/b] [member enabled] does not need to be [code]true[/code] for this to work.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_collider" qualifiers="const">
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<description>
|
||||
Updates the collision information for the ray.
|
||||
Use this method to update the collision information immediately instead of waiting for the next [code]_physics_process[/code] call, for example if the ray or its parent has changed state.
|
||||
[b]Note:[/b] [code]enabled == true[/code] is not required for this to work.
|
||||
[b]Note:[/b] [member enabled] does not need to be [code]true[/code] for this to work.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_collider" qualifiers="const">
|
||||
|
|
|
@ -102,9 +102,9 @@ bool test_add_remove() {
|
|||
a.connect_points(1, 3, true);
|
||||
a.connect_points(1, 4, false);
|
||||
|
||||
ok = ok && (a.are_points_connected(2, 1) == true);
|
||||
ok = ok && (a.are_points_connected(4, 1) == true);
|
||||
ok = ok && (a.are_points_connected(2, 1, false) == true);
|
||||
ok = ok && (a.are_points_connected(2, 1));
|
||||
ok = ok && (a.are_points_connected(4, 1));
|
||||
ok = ok && (a.are_points_connected(2, 1, false));
|
||||
ok = ok && (a.are_points_connected(4, 1, false) == false);
|
||||
|
||||
a.disconnect_points(1, 2, true);
|
||||
|
@ -179,7 +179,7 @@ bool test_add_remove() {
|
|||
if (Math::rand() % 2 == 1) {
|
||||
// Add a (possibly existing) directed edge and confirm connectivity
|
||||
a.connect_points(u, v, false);
|
||||
ok = ok && (a.are_points_connected(u, v, false) == true);
|
||||
ok = ok && (a.are_points_connected(u, v, false));
|
||||
} else {
|
||||
// Remove a (possibly nonexistent) directed edge and confirm disconnectivity
|
||||
a.disconnect_points(u, v, false);
|
||||
|
|
|
@ -1963,7 +1963,7 @@ MonoObject *CSharpInstance::_internal_new_managed() {
|
|||
|
||||
bool die = _unreference_owner_unsafe();
|
||||
// Not ok for the owner to die here. If there is a situation where this can happen, it will be considered a bug.
|
||||
CRASH_COND(die == true);
|
||||
CRASH_COND(die);
|
||||
|
||||
owner = nullptr;
|
||||
|
||||
|
@ -2298,7 +2298,7 @@ CSharpInstance::~CSharpInstance() {
|
|||
// Unreference the owner here, before the new "instance binding" references it.
|
||||
// Otherwise, the unsafe reference debug checks will incorrectly detect a bug.
|
||||
bool die = _unreference_owner_unsafe();
|
||||
CRASH_COND(die == true); // `owner_keep_alive` holds a reference, so it can't die
|
||||
CRASH_COND(die); // `owner_keep_alive` holds a reference, so it can't die
|
||||
|
||||
void *data = owner->get_script_instance_binding(CSharpLanguage::get_singleton()->get_language_index());
|
||||
CRASH_COND(data == nullptr);
|
||||
|
@ -3136,7 +3136,7 @@ CSharpInstance *CSharpScript::_create_instance(const Variant **p_args, int p_arg
|
|||
|
||||
bool die = instance->_unreference_owner_unsafe();
|
||||
// Not ok for the owner to die here. If there is a situation where this can happen, it will be considered a bug.
|
||||
CRASH_COND(die == true);
|
||||
CRASH_COND(die);
|
||||
|
||||
p_owner->set_script_instance(nullptr);
|
||||
r_error.error = Callable::CallError::CALL_ERROR_INSTANCE_IS_NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
|
|
|
@ -320,7 +320,7 @@ void OS_OSX::run() {
|
|||
}
|
||||
joypad_osx->process_joypads();
|
||||
|
||||
if (Main::iteration() == true) {
|
||||
if (Main::iteration()) {
|
||||
quit = true;
|
||||
}
|
||||
} @catch (NSException *exception) {
|
||||
|
|
Loading…
Reference in a new issue