Makes all Godot API's methods Lower Case
This commit is contained in:
parent
7e4970214c
commit
5ae78fdf6a
112 changed files with 430 additions and 430 deletions
|
@ -180,8 +180,8 @@ int _OS::get_mouse_button_state() const {
|
|||
return OS::get_singleton()->get_mouse_button_state();
|
||||
}
|
||||
|
||||
String _OS::get_unique_ID() const {
|
||||
return OS::get_singleton()->get_unique_ID();
|
||||
String _OS::get_unique_id() const {
|
||||
return OS::get_singleton()->get_unique_id();
|
||||
}
|
||||
bool _OS::has_touchscreen_ui_hint() const {
|
||||
|
||||
|
@ -369,9 +369,9 @@ Error _OS::kill(int p_pid) {
|
|||
return OS::get_singleton()->kill(p_pid);
|
||||
}
|
||||
|
||||
int _OS::get_process_ID() const {
|
||||
int _OS::get_process_id() const {
|
||||
|
||||
return OS::get_singleton()->get_process_ID();
|
||||
return OS::get_singleton()->get_process_id();
|
||||
};
|
||||
|
||||
bool _OS::has_environment(const String &p_var) const {
|
||||
|
@ -800,7 +800,7 @@ void _OS::print_all_textures_by_size() {
|
|||
img.fmt = fmt;
|
||||
img.path = E->get()->get_path();
|
||||
img.vram = Image::get_image_data_size(img.size.width, img.size.height, Image::Format(img.fmt));
|
||||
img.id = E->get()->get_instance_ID();
|
||||
img.id = E->get()->get_instance_id();
|
||||
total += img.vram;
|
||||
imgs.push_back(img);
|
||||
}
|
||||
|
@ -1019,7 +1019,7 @@ void _OS::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("execute", "path", "arguments", "blocking", "output"), &_OS::execute, DEFVAL(Array()));
|
||||
ClassDB::bind_method(D_METHOD("kill", "pid"), &_OS::kill);
|
||||
ClassDB::bind_method(D_METHOD("shell_open", "uri"), &_OS::shell_open);
|
||||
ClassDB::bind_method(D_METHOD("get_process_ID"), &_OS::get_process_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_process_id"), &_OS::get_process_id);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_environment", "environment"), &_OS::get_environment);
|
||||
ClassDB::bind_method(D_METHOD("has_environment", "environment"), &_OS::has_environment);
|
||||
|
@ -1074,7 +1074,7 @@ void _OS::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("get_data_dir"), &_OS::get_data_dir);
|
||||
ClassDB::bind_method(D_METHOD("get_system_dir", "dir"), &_OS::get_system_dir);
|
||||
ClassDB::bind_method(D_METHOD("get_unique_ID"), &_OS::get_unique_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_unique_id"), &_OS::get_unique_id);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("is_ok_left_and_cancel_right"), &_OS::is_ok_left_and_cancel_right);
|
||||
|
||||
|
@ -2256,7 +2256,7 @@ String _Thread::get_id() const {
|
|||
if (!thread)
|
||||
return String();
|
||||
|
||||
return itos(thread->get_ID());
|
||||
return itos(thread->get_id());
|
||||
}
|
||||
|
||||
bool _Thread::is_active() const {
|
||||
|
|
|
@ -175,7 +175,7 @@ public:
|
|||
Error kill(int p_pid);
|
||||
Error shell_open(String p_uri);
|
||||
|
||||
int get_process_ID() const;
|
||||
int get_process_id() const;
|
||||
|
||||
bool has_environment(const String &p_var) const;
|
||||
String get_environment(const String &p_var) const;
|
||||
|
@ -204,7 +204,7 @@ public:
|
|||
|
||||
bool is_debug_build() const;
|
||||
|
||||
String get_unique_ID() const;
|
||||
String get_unique_id() const;
|
||||
|
||||
String get_scancode_string(uint32_t p_code) const;
|
||||
bool is_scancode_unicode(uint32_t p_unicode) const;
|
||||
|
|
|
@ -48,7 +48,7 @@ Variant FuncRef::call_func(const Variant **p_args, int p_argcount, Variant::Call
|
|||
void FuncRef::set_instance(Object *p_obj) {
|
||||
|
||||
ERR_FAIL_NULL(p_obj);
|
||||
id = p_obj->get_instance_ID();
|
||||
id = p_obj->get_instance_id();
|
||||
}
|
||||
void FuncRef::set_function(const StringName &p_func) {
|
||||
|
||||
|
|
|
@ -153,16 +153,16 @@ Error MessageQueue::push_notification(ObjectID p_id, int p_notification) {
|
|||
|
||||
Error MessageQueue::push_call(Object *p_object, const StringName &p_method, VARIANT_ARG_DECLARE) {
|
||||
|
||||
return push_call(p_object->get_instance_ID(), p_method, VARIANT_ARG_PASS);
|
||||
return push_call(p_object->get_instance_id(), p_method, VARIANT_ARG_PASS);
|
||||
}
|
||||
|
||||
Error MessageQueue::push_notification(Object *p_object, int p_notification) {
|
||||
|
||||
return push_notification(p_object->get_instance_ID(), p_notification);
|
||||
return push_notification(p_object->get_instance_id(), p_notification);
|
||||
}
|
||||
Error MessageQueue::push_set(Object *p_object, const StringName &p_prop, const Variant &p_value) {
|
||||
|
||||
return push_set(p_object->get_instance_ID(), p_prop, p_value);
|
||||
return push_set(p_object->get_instance_id(), p_prop, p_value);
|
||||
}
|
||||
|
||||
void MessageQueue::statistics() {
|
||||
|
|
|
@ -599,7 +599,7 @@ Variant Object::_call_deferred_bind(const Variant **p_args, int p_argcount, Vari
|
|||
|
||||
StringName method = *p_args[0];
|
||||
|
||||
MessageQueue::get_singleton()->push_call(get_instance_ID(), method, &p_args[1], p_argcount - 1);
|
||||
MessageQueue::get_singleton()->push_call(get_instance_id(), method, &p_args[1], p_argcount - 1);
|
||||
|
||||
return Variant();
|
||||
}
|
||||
|
@ -1247,7 +1247,7 @@ Error Object::emit_signal(const StringName &p_name, const Variant **p_args, int
|
|||
}
|
||||
|
||||
if (c.flags & CONNECT_DEFERRED) {
|
||||
MessageQueue::get_singleton()->push_call(target->get_instance_ID(), c.method, args, argc, true);
|
||||
MessageQueue::get_singleton()->push_call(target->get_instance_id(), c.method, args, argc, true);
|
||||
} else {
|
||||
Variant::CallError ce;
|
||||
target->call(c.method, args, argc, ce);
|
||||
|
@ -1478,7 +1478,7 @@ Error Object::connect(const StringName &p_signal, Object *p_to_object, const Str
|
|||
s = &signal_map[p_signal];
|
||||
}
|
||||
|
||||
Signal::Target target(p_to_object->get_instance_ID(), p_to_method);
|
||||
Signal::Target target(p_to_object->get_instance_id(), p_to_method);
|
||||
if (s->slot_map.has(target)) {
|
||||
ERR_EXPLAIN("Signal '" + p_signal + "'' already connected to given method '" + p_to_method + "' in that object.");
|
||||
ERR_FAIL_COND_V(s->slot_map.has(target), ERR_INVALID_PARAMETER);
|
||||
|
@ -1516,7 +1516,7 @@ bool Object::is_connected(const StringName &p_signal, Object *p_to_object, const
|
|||
ERR_FAIL_COND_V(!s, false);
|
||||
}
|
||||
|
||||
Signal::Target target(p_to_object->get_instance_ID(), p_to_method);
|
||||
Signal::Target target(p_to_object->get_instance_id(), p_to_method);
|
||||
|
||||
return s->slot_map.has(target);
|
||||
//const Map<Signal::Target,Signal::Slot>::Element *E = s->slot_map.find(target);
|
||||
|
@ -1536,7 +1536,7 @@ void Object::disconnect(const StringName &p_signal, Object *p_to_object, const S
|
|||
ERR_FAIL_COND(s->lock > 0);
|
||||
}
|
||||
|
||||
Signal::Target target(p_to_object->get_instance_ID(), p_to_method);
|
||||
Signal::Target target(p_to_object->get_instance_id(), p_to_method);
|
||||
|
||||
if (!s->slot_map.has(target)) {
|
||||
ERR_EXPLAIN("Disconnecting nonexistent signal '" + p_signal + "', slot: " + itos(target._id) + ":" + target.method);
|
||||
|
@ -1667,7 +1667,7 @@ void Object::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_property_list"), &Object::_get_property_list_bind);
|
||||
ClassDB::bind_method(D_METHOD("get_method_list"), &Object::_get_method_list_bind);
|
||||
ClassDB::bind_method(D_METHOD("notification", "what", "reversed"), &Object::notification, DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("get_instance_ID"), &Object::get_instance_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_instance_id"), &Object::get_instance_id);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_script", "script:Script"), &Object::set_script);
|
||||
ClassDB::bind_method(D_METHOD("get_script:Script"), &Object::get_script);
|
||||
|
@ -1936,7 +1936,7 @@ ObjectID ObjectDB::instance_counter = 1;
|
|||
HashMap<Object *, ObjectID, ObjectDB::ObjectPtrHash> ObjectDB::instance_checks;
|
||||
ObjectID ObjectDB::add_instance(Object *p_object) {
|
||||
|
||||
ERR_FAIL_COND_V(p_object->get_instance_ID() != 0, 0);
|
||||
ERR_FAIL_COND_V(p_object->get_instance_id() != 0, 0);
|
||||
|
||||
rw_lock->write_lock();
|
||||
instances[++instance_counter] = p_object;
|
||||
|
@ -1952,7 +1952,7 @@ void ObjectDB::remove_instance(Object *p_object) {
|
|||
|
||||
rw_lock->write_lock();
|
||||
|
||||
instances.erase(p_object->get_instance_ID());
|
||||
instances.erase(p_object->get_instance_id());
|
||||
#ifdef DEBUG_ENABLED
|
||||
instance_checks.erase(p_object);
|
||||
#endif
|
||||
|
|
|
@ -534,7 +534,7 @@ public:
|
|||
|
||||
bool _is_gpl_reversed() const { return false; }
|
||||
|
||||
_FORCE_INLINE_ ObjectID get_instance_ID() const { return _instance_ID; }
|
||||
_FORCE_INLINE_ ObjectID get_instance_id() const { return _instance_ID; }
|
||||
// this is used for editors
|
||||
|
||||
void add_change_receptor(Object *p_receptor);
|
||||
|
|
|
@ -129,7 +129,7 @@ String OS::get_executable_path() const {
|
|||
return _execpath;
|
||||
}
|
||||
|
||||
int OS::get_process_ID() const {
|
||||
int OS::get_process_id() const {
|
||||
|
||||
return -1;
|
||||
};
|
||||
|
@ -175,7 +175,7 @@ static void _OS_printres(Object *p_obj) {
|
|||
if (!res)
|
||||
return;
|
||||
|
||||
String str = itos(res->get_instance_ID()) + String(res->get_class()) + ":" + String(res->get_name()) + " - " + res->get_path();
|
||||
String str = itos(res->get_instance_id()) + String(res->get_class()) + ":" + String(res->get_name()) + " - " + res->get_path();
|
||||
if (_OSPRF)
|
||||
_OSPRF->store_line(str);
|
||||
else
|
||||
|
@ -412,7 +412,7 @@ void OS::make_rendering_thread() {
|
|||
void OS::swap_buffers() {
|
||||
}
|
||||
|
||||
String OS::get_unique_ID() const {
|
||||
String OS::get_unique_id() const {
|
||||
|
||||
ERR_FAIL_V("");
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ public:
|
|||
virtual String get_executable_path() const;
|
||||
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL) = 0;
|
||||
virtual Error kill(const ProcessID &p_pid) = 0;
|
||||
virtual int get_process_ID() const;
|
||||
virtual int get_process_id() const;
|
||||
|
||||
virtual Error shell_open(String p_uri);
|
||||
virtual Error set_cwd(const String &p_cwd);
|
||||
|
@ -370,7 +370,7 @@ public:
|
|||
|
||||
virtual int get_processor_count() const;
|
||||
|
||||
virtual String get_unique_ID() const;
|
||||
virtual String get_unique_id() const;
|
||||
|
||||
virtual Error native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track);
|
||||
virtual bool native_video_is_playing() const;
|
||||
|
|
|
@ -30,16 +30,16 @@
|
|||
#include "thread.h"
|
||||
|
||||
Thread *(*Thread::create_func)(ThreadCreateCallback, void *, const Settings &) = NULL;
|
||||
Thread::ID (*Thread::get_thread_ID_func)() = NULL;
|
||||
Thread::ID (*Thread::get_thread_id_func)() = NULL;
|
||||
void (*Thread::wait_to_finish_func)(Thread *) = NULL;
|
||||
Error (*Thread::set_name_func)(const String &) = NULL;
|
||||
|
||||
Thread::ID Thread::_main_thread_id = 0;
|
||||
|
||||
Thread::ID Thread::get_caller_ID() {
|
||||
Thread::ID Thread::get_caller_id() {
|
||||
|
||||
if (get_thread_ID_func)
|
||||
return get_thread_ID_func();
|
||||
if (get_thread_id_func)
|
||||
return get_thread_id_func();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
protected:
|
||||
static Thread *(*create_func)(ThreadCreateCallback p_callback, void *, const Settings &);
|
||||
static ID (*get_thread_ID_func)();
|
||||
static ID (*get_thread_id_func)();
|
||||
static void (*wait_to_finish_func)(Thread *);
|
||||
static Error (*set_name_func)(const String &);
|
||||
|
||||
|
@ -69,11 +69,11 @@ protected:
|
|||
Thread();
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const = 0;
|
||||
virtual ID get_id() const = 0;
|
||||
|
||||
static Error set_name(const String &p_name);
|
||||
_FORCE_INLINE_ static ID get_main_ID() { return _main_thread_id; } ///< get the ID of the main thread
|
||||
static ID get_caller_ID(); ///< get the ID of the caller function ID
|
||||
_FORCE_INLINE_ static ID get_main_id() { return _main_thread_id; } ///< get the ID of the main thread
|
||||
static ID get_caller_id(); ///< get the ID of the caller function ID
|
||||
static void wait_to_finish(Thread *p_thread); ///< waits until thread is finished, and deallocates it.
|
||||
static Thread *create(ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings = Settings()); ///< Static function to create a thread, will call p_callback
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class ThreadDummy : public Thread {
|
|||
static Thread *create(ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings = Settings());
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const { return 0; };
|
||||
virtual ID get_id() const { return 0; };
|
||||
|
||||
static void make_default();
|
||||
};
|
||||
|
|
|
@ -108,12 +108,12 @@ Variant WeakRef::get_ref() const {
|
|||
}
|
||||
|
||||
void WeakRef::set_obj(Object *p_object) {
|
||||
ref = p_object ? p_object->get_instance_ID() : 0;
|
||||
ref = p_object ? p_object->get_instance_id() : 0;
|
||||
}
|
||||
|
||||
void WeakRef::set_ref(const REF &p_ref) {
|
||||
|
||||
ref = p_ref.is_valid() ? p_ref->get_instance_ID() : 0;
|
||||
ref = p_ref.is_valid() ? p_ref->get_instance_id() : 0;
|
||||
}
|
||||
|
||||
WeakRef::WeakRef() {
|
||||
|
|
|
@ -228,12 +228,12 @@ RID Resource::get_rid() const {
|
|||
|
||||
void Resource::register_owner(Object *p_owner) {
|
||||
|
||||
owners.insert(p_owner->get_instance_ID());
|
||||
owners.insert(p_owner->get_instance_id());
|
||||
}
|
||||
|
||||
void Resource::unregister_owner(Object *p_owner) {
|
||||
|
||||
owners.erase(p_owner->get_instance_ID());
|
||||
owners.erase(p_owner->get_instance_id());
|
||||
}
|
||||
|
||||
void Resource::notify_change_to_owners() {
|
||||
|
|
|
@ -95,7 +95,7 @@ static Object *_ScriptDebuggerRemote_find = NULL;
|
|||
static void _ScriptDebuggerRemote_debug_func(Object *p_obj) {
|
||||
|
||||
if (_ScriptDebuggerRemote_find == p_obj) {
|
||||
_ScriptDebuggerRemote_found_id = p_obj->get_instance_ID();
|
||||
_ScriptDebuggerRemote_found_id = p_obj->get_instance_id();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ static ObjectID safe_get_instance_id(const Variant &p_v) {
|
|||
REF r = p_v;
|
||||
if (r.is_valid()) {
|
||||
|
||||
return r->get_instance_ID();
|
||||
return r->get_instance_id();
|
||||
} else {
|
||||
|
||||
_ScriptDebuggerRemote_found_id = 0;
|
||||
|
@ -572,7 +572,7 @@ void ScriptDebuggerRemote::_send_object_id(ObjectID p_id) {
|
|||
ObjectID id2;
|
||||
Object *obj = var;
|
||||
if (obj) {
|
||||
id2 = obj->get_instance_ID();
|
||||
id2 = obj->get_instance_id();
|
||||
} else {
|
||||
id2 = 0;
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ void UndoRedo::add_do_method(Object *p_object, const String &p_method, VARIANT_A
|
|||
ERR_FAIL_COND(action_level <= 0);
|
||||
ERR_FAIL_COND((current_action + 1) >= actions.size());
|
||||
Operation do_op;
|
||||
do_op.object = p_object->get_instance_ID();
|
||||
do_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
do_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
@ -134,7 +134,7 @@ void UndoRedo::add_undo_method(Object *p_object, const String &p_method, VARIANT
|
|||
return;
|
||||
|
||||
Operation undo_op;
|
||||
undo_op.object = p_object->get_instance_ID();
|
||||
undo_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
undo_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
@ -151,7 +151,7 @@ void UndoRedo::add_do_property(Object *p_object, const String &p_property, const
|
|||
ERR_FAIL_COND(action_level <= 0);
|
||||
ERR_FAIL_COND((current_action + 1) >= actions.size());
|
||||
Operation do_op;
|
||||
do_op.object = p_object->get_instance_ID();
|
||||
do_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
do_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
@ -170,7 +170,7 @@ void UndoRedo::add_undo_property(Object *p_object, const String &p_property, con
|
|||
return;
|
||||
|
||||
Operation undo_op;
|
||||
undo_op.object = p_object->get_instance_ID();
|
||||
undo_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
undo_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
@ -184,7 +184,7 @@ void UndoRedo::add_do_reference(Object *p_object) {
|
|||
ERR_FAIL_COND(action_level <= 0);
|
||||
ERR_FAIL_COND((current_action + 1) >= actions.size());
|
||||
Operation do_op;
|
||||
do_op.object = p_object->get_instance_ID();
|
||||
do_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
do_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
@ -201,7 +201,7 @@ void UndoRedo::add_undo_reference(Object *p_object) {
|
|||
return;
|
||||
|
||||
Operation undo_op;
|
||||
undo_op.object = p_object->get_instance_ID();
|
||||
undo_op.object = p_object->get_instance_id();
|
||||
if (p_object->cast_to<Resource>())
|
||||
undo_op.resref = Ref<Resource>(p_object->cast_to<Resource>());
|
||||
|
||||
|
|
|
@ -1600,7 +1600,7 @@ Variant::operator String() const {
|
|||
};
|
||||
};
|
||||
#endif
|
||||
return "[" + _get_obj().obj->get_class() + ":" + itos(_get_obj().obj->get_instance_ID()) + "]";
|
||||
return "[" + _get_obj().obj->get_class() + ":" + itos(_get_obj().obj->get_instance_id()) + "]";
|
||||
} else
|
||||
return "[Object:null]";
|
||||
|
||||
|
|
|
@ -27432,7 +27432,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_process_ID" qualifiers="const">
|
||||
<method name="get_process_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
|
@ -27558,7 +27558,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_unique_ID" qualifiers="const">
|
||||
<method name="get_unique_id" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
|
@ -28150,7 +28150,7 @@
|
|||
- "method_name" is a name of method to which signal is connected.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_instance_ID" qualifiers="const">
|
||||
<method name="get_instance_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
|
@ -28498,7 +28498,7 @@
|
|||
Clear all the items in the [OptionButton].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_item_ID" qualifiers="const">
|
||||
<method name="get_item_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="idx" type="int">
|
||||
|
@ -28547,7 +28547,7 @@
|
|||
Return the current item index
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_selected_ID" qualifiers="const">
|
||||
<method name="get_selected_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
|
@ -28580,7 +28580,7 @@
|
|||
Select an item by index and make it the current item.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_item_ID">
|
||||
<method name="set_item_id">
|
||||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
@ -30915,7 +30915,7 @@
|
|||
Add a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index.
|
||||
</description>
|
||||
</method>
|
||||
<method name="area_attach_object_instance_ID">
|
||||
<method name="area_attach_object_instance_id">
|
||||
<argument index="0" name="area" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
@ -30938,7 +30938,7 @@
|
|||
Create an [Area2D].
|
||||
</description>
|
||||
</method>
|
||||
<method name="area_get_object_instance_ID" qualifiers="const">
|
||||
<method name="area_get_object_instance_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="area" type="RID">
|
||||
|
@ -31169,7 +31169,7 @@
|
|||
Add a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_attach_object_instance_ID">
|
||||
<method name="body_attach_object_instance_id">
|
||||
<argument index="0" name="body" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
@ -31241,7 +31241,7 @@
|
|||
Return the body mode.
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_get_object_instance_ID" qualifiers="const">
|
||||
<method name="body_get_object_instance_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="body" type="RID">
|
||||
|
@ -32659,7 +32659,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="area_attach_object_instance_ID">
|
||||
<method name="area_attach_object_instance_id">
|
||||
<argument index="0" name="area" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
@ -32679,7 +32679,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="area_get_object_instance_ID" qualifiers="const">
|
||||
<method name="area_get_object_instance_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="area" type="RID">
|
||||
|
@ -32887,7 +32887,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_attach_object_instance_ID">
|
||||
<method name="body_attach_object_instance_id">
|
||||
<argument index="0" name="body" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
@ -32951,7 +32951,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="body_get_object_instance_ID" qualifiers="const">
|
||||
<method name="body_get_object_instance_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="body" type="RID">
|
||||
|
@ -33401,7 +33401,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="pin_joint_get_local_A" qualifiers="const">
|
||||
<method name="pin_joint_get_local_a" qualifiers="const">
|
||||
<return type="Vector3">
|
||||
</return>
|
||||
<argument index="0" name="joint" type="RID">
|
||||
|
@ -33409,7 +33409,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="pin_joint_get_local_B" qualifiers="const">
|
||||
<method name="pin_joint_get_local_b" qualifiers="const">
|
||||
<return type="Vector3">
|
||||
</return>
|
||||
<argument index="0" name="joint" type="RID">
|
||||
|
@ -33427,7 +33427,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="pin_joint_set_local_A">
|
||||
<method name="pin_joint_set_local_a">
|
||||
<argument index="0" name="joint" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="local_A" type="Vector3">
|
||||
|
@ -33435,7 +33435,7 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="pin_joint_set_local_B">
|
||||
<method name="pin_joint_set_local_b">
|
||||
<argument index="0" name="joint" type="RID">
|
||||
</argument>
|
||||
<argument index="1" name="local_B" type="Vector3">
|
||||
|
@ -35378,7 +35378,7 @@
|
|||
Clear the popup menu, in effect removing all items.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_item_ID" qualifiers="const">
|
||||
<method name="get_item_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<argument index="0" name="idx" type="int">
|
||||
|
@ -35535,7 +35535,7 @@
|
|||
Sets whether or not the PopupMenu will hide on item selection.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_item_ID">
|
||||
<method name="set_item_id">
|
||||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<argument index="1" name="id" type="int">
|
||||
|
|
|
@ -415,7 +415,7 @@ Error OS_Unix::kill(const ProcessID &p_pid) {
|
|||
return ret ? ERR_INVALID_PARAMETER : OK;
|
||||
}
|
||||
|
||||
int OS_Unix::get_process_ID() const {
|
||||
int OS_Unix::get_process_id() const {
|
||||
|
||||
return getpid();
|
||||
};
|
||||
|
|
|
@ -103,7 +103,7 @@ public:
|
|||
|
||||
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL);
|
||||
virtual Error kill(const ProcessID &p_pid);
|
||||
virtual int get_process_ID() const;
|
||||
virtual int get_process_id() const;
|
||||
|
||||
virtual bool has_environment(const String &p_var) const;
|
||||
virtual String get_environment(const String &p_var) const;
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include "os/memory.h"
|
||||
|
||||
Thread::ID ThreadPosix::get_ID() const {
|
||||
Thread::ID ThreadPosix::get_id() const {
|
||||
|
||||
return id;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ Thread *ThreadPosix::create_func_posix(ThreadCreateCallback p_callback, void *p_
|
|||
|
||||
return tr;
|
||||
}
|
||||
Thread::ID ThreadPosix::get_thread_ID_func_posix() {
|
||||
Thread::ID ThreadPosix::get_thread_id_func_posix() {
|
||||
|
||||
return (ID)pthread_self();
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ Error ThreadPosix::set_name_func_posix(const String &p_name) {
|
|||
void ThreadPosix::make_default() {
|
||||
|
||||
create_func = create_func_posix;
|
||||
get_thread_ID_func = get_thread_ID_func_posix;
|
||||
get_thread_id_func = get_thread_id_func_posix;
|
||||
wait_to_finish_func = wait_to_finish_func_posix;
|
||||
set_name_func = set_name_func_posix;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ class ThreadPosix : public Thread {
|
|||
static void *thread_callback(void *userdata);
|
||||
|
||||
static Thread *create_func_posix(ThreadCreateCallback p_callback, void *, const Settings &);
|
||||
static ID get_thread_ID_func_posix();
|
||||
static ID get_thread_id_func_posix();
|
||||
static void wait_to_finish_func_posix(Thread *p_thread);
|
||||
|
||||
static Error set_name_func_posix(const String &p_name);
|
||||
|
@ -61,7 +61,7 @@ class ThreadPosix : public Thread {
|
|||
ThreadPosix();
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const;
|
||||
virtual ID get_id() const;
|
||||
|
||||
static void make_default();
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "os/memory.h"
|
||||
|
||||
Thread::ID ThreadWindows::get_ID() const {
|
||||
Thread::ID ThreadWindows::get_id() const {
|
||||
|
||||
return id;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ Thread *ThreadWindows::create_func_windows(ThreadCreateCallback p_callback, void
|
|||
|
||||
return tr;
|
||||
}
|
||||
Thread::ID ThreadWindows::get_thread_ID_func_windows() {
|
||||
Thread::ID ThreadWindows::get_thread_id_func_windows() {
|
||||
|
||||
return (ID)GetCurrentThreadId(); //must implement
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ void ThreadWindows::wait_to_finish_func_windows(Thread *p_thread) {
|
|||
void ThreadWindows::make_default() {
|
||||
|
||||
create_func = create_func_windows;
|
||||
get_thread_ID_func = get_thread_ID_func_windows;
|
||||
get_thread_id_func = get_thread_id_func_windows;
|
||||
wait_to_finish_func = wait_to_finish_func_windows;
|
||||
}
|
||||
|
||||
|
|
|
@ -52,13 +52,13 @@ class ThreadWindows : public Thread {
|
|||
static DWORD WINAPI thread_callback(LPVOID userdata);
|
||||
|
||||
static Thread *create_func_windows(ThreadCreateCallback p_callback, void *, const Settings &);
|
||||
static ID get_thread_ID_func_windows();
|
||||
static ID get_thread_id_func_windows();
|
||||
static void wait_to_finish_func_windows(Thread *p_thread);
|
||||
|
||||
ThreadWindows();
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const;
|
||||
virtual ID get_id() const;
|
||||
|
||||
static void make_default();
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ void ArrayPropertyEdit::edit(Object *p_obj, const StringName &p_prop, const Stri
|
|||
|
||||
page = 0;
|
||||
property = p_prop;
|
||||
obj = p_obj->get_instance_ID();
|
||||
obj = p_obj->get_instance_id();
|
||||
default_type = p_deftype;
|
||||
|
||||
if (!p_hint_string.empty()) {
|
||||
|
|
|
@ -1136,7 +1136,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
|||
item->connect("category_selected", this, "_select_category");
|
||||
|
||||
if (r.has("icon_url") && r["icon_url"] != "") {
|
||||
_request_image(item->get_instance_ID(), r["icon_url"], IMAGE_QUEUE_ICON, 0);
|
||||
_request_image(item->get_instance_id(), r["icon_url"], IMAGE_QUEUE_ICON, 0);
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
@ -1173,7 +1173,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
|||
item->connect("category_selected",this,"_category_selected");*/
|
||||
|
||||
if (r.has("icon_url") && r["icon_url"] != "") {
|
||||
_request_image(description->get_instance_ID(), r["icon_url"], IMAGE_QUEUE_ICON, 0);
|
||||
_request_image(description->get_instance_id(), r["icon_url"], IMAGE_QUEUE_ICON, 0);
|
||||
}
|
||||
|
||||
if (d.has("previews")) {
|
||||
|
@ -1195,12 +1195,12 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
|||
description->add_preview(i, is_video, video_url);
|
||||
|
||||
if (p.has("thumbnail")) {
|
||||
_request_image(description->get_instance_ID(), p["thumbnail"], IMAGE_QUEUE_THUMBNAIL, i);
|
||||
_request_image(description->get_instance_id(), p["thumbnail"], IMAGE_QUEUE_THUMBNAIL, i);
|
||||
}
|
||||
if (is_video) {
|
||||
//_request_image(description->get_instance_ID(),p["link"],IMAGE_QUEUE_SCREENSHOT,i);
|
||||
//_request_image(description->get_instance_id(),p["link"],IMAGE_QUEUE_SCREENSHOT,i);
|
||||
} else {
|
||||
_request_image(description->get_instance_ID(), p["link"], IMAGE_QUEUE_SCREENSHOT, i);
|
||||
_request_image(description->get_instance_id(), p["link"], IMAGE_QUEUE_SCREENSHOT, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@ void ConnectDialog::_add_bind() {
|
|||
|
||||
if (cdbinds->params.size() >= VARIANT_ARG_MAX)
|
||||
return;
|
||||
Variant::Type vt = (Variant::Type)type_list->get_item_ID(type_list->get_selected());
|
||||
Variant::Type vt = (Variant::Type)type_list->get_item_id(type_list->get_selected());
|
||||
|
||||
Variant value;
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ ObjectID EditorHistory::get_current() {
|
|||
if (!obj)
|
||||
return 0;
|
||||
|
||||
return obj->get_instance_ID();
|
||||
return obj->get_instance_id();
|
||||
}
|
||||
|
||||
int EditorHistory::get_path_size() const {
|
||||
|
@ -208,7 +208,7 @@ ObjectID EditorHistory::get_path_object(int p_index) const {
|
|||
if (!obj)
|
||||
return 0;
|
||||
|
||||
return obj->get_instance_ID();
|
||||
return obj->get_instance_id();
|
||||
}
|
||||
|
||||
String EditorHistory::get_path_property(int p_index) const {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
void EditorLog::_error_handler(void *p_self, const char *p_func, const char *p_file, int p_line, const char *p_error, const char *p_errorexp, ErrorHandlerType p_type) {
|
||||
|
||||
EditorLog *self = (EditorLog *)p_self;
|
||||
if (self->current != Thread::get_caller_ID())
|
||||
if (self->current != Thread::get_caller_id())
|
||||
return;
|
||||
|
||||
String err_str;
|
||||
|
@ -204,7 +204,7 @@ EditorLog::EditorLog() {
|
|||
eh.userdata = this;
|
||||
add_error_handler(&eh);
|
||||
|
||||
current = Thread::get_caller_ID();
|
||||
current = Thread::get_caller_id();
|
||||
|
||||
EditorNode::get_undo_redo()->set_commit_notify_callback(_undo_redo_cbk, this);
|
||||
}
|
||||
|
|
|
@ -1358,7 +1358,7 @@ void EditorNode::push_item(Object *p_object, const String &p_property) {
|
|||
return;
|
||||
}
|
||||
|
||||
uint32_t id = p_object->get_instance_ID();
|
||||
uint32_t id = p_object->get_instance_id();
|
||||
if (id != editor_history.get_current()) {
|
||||
|
||||
if (p_property == "")
|
||||
|
|
|
@ -63,7 +63,7 @@ void EditorPath::_add_children_to_popup(Object *p_obj, int p_depth) {
|
|||
int index = popup->get_item_count();
|
||||
popup->add_icon_item(icon, E->get().name.capitalize(), objects.size());
|
||||
popup->set_item_h_offset(index, p_depth * 10 * EDSCALE);
|
||||
objects.push_back(obj->get_instance_ID());
|
||||
objects.push_back(obj->get_instance_id());
|
||||
|
||||
_add_children_to_popup(obj, p_depth + 1);
|
||||
}
|
||||
|
|
|
@ -295,7 +295,7 @@ void EditorResourcePreview::queue_edited_resource_preview(const Ref<Resource> &p
|
|||
|
||||
preview_mutex->lock();
|
||||
|
||||
String path_id = "ID:" + itos(p_res->get_instance_ID());
|
||||
String path_id = "ID:" + itos(p_res->get_instance_id());
|
||||
|
||||
if (cache.has(path_id) && cache[path_id].last_hash == p_res->hash_edited_version()) {
|
||||
|
||||
|
@ -310,7 +310,7 @@ void EditorResourcePreview::queue_edited_resource_preview(const Ref<Resource> &p
|
|||
//print_line("send to thread "+p_path);
|
||||
QueueItem item;
|
||||
item.function = p_receiver_func;
|
||||
item.id = p_receiver->get_instance_ID();
|
||||
item.id = p_receiver->get_instance_id();
|
||||
item.resource = p_res;
|
||||
item.path = path_id;
|
||||
item.userdata = p_userdata;
|
||||
|
@ -334,7 +334,7 @@ void EditorResourcePreview::queue_resource_preview(const String &p_path, Object
|
|||
//print_line("send to thread "+p_path);
|
||||
QueueItem item;
|
||||
item.function = p_receiver_func;
|
||||
item.id = p_receiver->get_instance_ID();
|
||||
item.id = p_receiver->get_instance_id();
|
||||
item.path = p_path;
|
||||
item.userdata = p_userdata;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ Error EditorRun::run(const String &p_scene, const String p_custom_args, const Li
|
|||
}
|
||||
|
||||
args.push_back("-epid");
|
||||
args.push_back(String::num(OS::get_singleton()->get_process_ID()));
|
||||
args.push_back(String::num(OS::get_singleton()->get_process_id()));
|
||||
|
||||
if (debug_collisions) {
|
||||
args.push_back("-debugcol");
|
||||
|
|
|
@ -385,7 +385,7 @@ void CanvasItemEditor::_add_canvas_item(CanvasItem *p_canvas_item) {
|
|||
return;
|
||||
|
||||
canvas_items.insert(p_canvas_item,p_info);
|
||||
p_canvas_item->connect("hide",this,"_visibility_changed",varray(p_canvas_item->get_instance_ID()),CONNECT_ONESHOT);
|
||||
p_canvas_item->connect("hide",this,"_visibility_changed",varray(p_canvas_item->get_instance_id()),CONNECT_ONESHOT);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -2204,7 +2204,7 @@ void CanvasItemEditor::_find_canvas_items_span(Node *p_node, Rect2 &r_rect, cons
|
|||
|
||||
if (c->has_meta("_edit_bone_")) {
|
||||
|
||||
ObjectID id = c->get_instance_ID();
|
||||
ObjectID id = c->get_instance_id();
|
||||
if (!bone_list.has(id)) {
|
||||
BoneList bone;
|
||||
bone.bone = id;
|
||||
|
@ -2769,7 +2769,7 @@ void CanvasItemEditor::_popup_callback(int p_op) {
|
|||
pc.pos = n2d->get_position();
|
||||
pc.rot = n2d->get_rotation();
|
||||
pc.scale = n2d->get_scale();
|
||||
pc.id = n2d->get_instance_ID();
|
||||
pc.id = n2d->get_instance_id();
|
||||
pose_clipboard.push_back(pc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,8 +116,8 @@ public:
|
|||
virtual void set_item_enabled(int p_idx, int p_enabled) { ob->set_item_disabled(p_idx, !p_enabled); }
|
||||
virtual bool is_item_enabled(int p_idx) const { return !ob->is_item_disabled(p_idx); }
|
||||
|
||||
virtual void set_item_id(int p_idx, int p_id) { ob->set_item_ID(p_idx, p_id); }
|
||||
virtual int get_item_id(int p_idx) const { return ob->get_item_ID(p_idx); }
|
||||
virtual void set_item_id(int p_idx, int p_id) { ob->set_item_id(p_idx, p_id); }
|
||||
virtual int get_item_id(int p_idx) const { return ob->get_item_id(p_idx); }
|
||||
|
||||
virtual void add_item();
|
||||
virtual int get_item_count() const;
|
||||
|
@ -152,8 +152,8 @@ public:
|
|||
virtual void set_item_enabled(int p_idx, int p_enabled) { pp->set_item_disabled(p_idx, !p_enabled); }
|
||||
virtual bool is_item_enabled(int p_idx) const { return !pp->is_item_disabled(p_idx); }
|
||||
|
||||
virtual void set_item_id(int p_idx, int p_id) { pp->set_item_ID(p_idx, p_idx); }
|
||||
virtual int get_item_id(int p_idx) const { return pp->get_item_ID(p_idx); }
|
||||
virtual void set_item_id(int p_idx, int p_id) { pp->set_item_id(p_idx, p_idx); }
|
||||
virtual int get_item_id(int p_idx) const { return pp->get_item_id(p_idx); }
|
||||
|
||||
virtual void set_item_separator(int p_idx, bool p_separator) { pp->set_item_as_separator(p_idx, p_separator); }
|
||||
virtual bool is_item_separator(int p_idx) const { return pp->is_item_separator(p_idx); }
|
||||
|
|
|
@ -456,7 +456,7 @@ String ScriptTextEditor::get_name() {
|
|||
} else if (script->get_name() != "")
|
||||
name = script->get_name();
|
||||
else
|
||||
name = script->get_class() + "(" + itos(script->get_instance_ID()) + ")";
|
||||
name = script->get_class() + "(" + itos(script->get_instance_id()) + ")";
|
||||
|
||||
return name;
|
||||
}
|
||||
|
|
|
@ -665,7 +665,7 @@ void SpatialEditorViewport::_list_select(Ref<InputEventMouseButton> b) {
|
|||
|
||||
if (selection_results.size() == 1) {
|
||||
|
||||
clicked = selection_results[0].item->get_instance_ID();
|
||||
clicked = selection_results[0].item->get_instance_id();
|
||||
selection_results.clear();
|
||||
|
||||
if (clicked) {
|
||||
|
@ -2166,7 +2166,7 @@ void SpatialEditorViewport::_selection_result_pressed(int p_result) {
|
|||
if (selection_results.size() <= p_result)
|
||||
return;
|
||||
|
||||
clicked = selection_results[p_result].item->get_instance_ID();
|
||||
clicked = selection_results[p_result].item->get_instance_id();
|
||||
|
||||
if (clicked) {
|
||||
_select_clicked(clicked_wants_append, true);
|
||||
|
@ -3039,9 +3039,9 @@ void SpatialEditor::edit(Spatial *p_spatial) {
|
|||
/*
|
||||
if (p_spatial) {
|
||||
_validate_selection();
|
||||
if (selected.has(p_spatial->get_instance_ID()) && selected.size()==1)
|
||||
if (selected.has(p_spatial->get_instance_id()) && selected.size()==1)
|
||||
return;
|
||||
_select(p_spatial->get_instance_ID(),false,true);
|
||||
_select(p_spatial->get_instance_id(),false,true);
|
||||
|
||||
// should become the selection
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ struct _TECategory {
|
|||
|
||||
Ref<T> item;
|
||||
StringName name;
|
||||
bool operator<(const RefItem<T> &p) const { return item->get_instance_ID() < p.item->get_instance_ID(); }
|
||||
bool operator<(const RefItem<T> &p) const { return item->get_instance_id() < p.item->get_instance_id(); }
|
||||
};
|
||||
|
||||
template <class T>
|
||||
|
|
|
@ -2370,7 +2370,7 @@ void PropertyEditor::set_item_text(TreeItem *p_item, int p_type, const String &p
|
|||
p_item->set_text(1, res->get_path().get_file());
|
||||
} else if (!res->is_class("Texture")) {
|
||||
//texture already previews via itself
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", p_item->get_instance_ID());
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", p_item->get_instance_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3630,7 +3630,7 @@ void PropertyEditor::update_tree() {
|
|||
item->set_text(1, res->get_path().get_file());
|
||||
} else if (!res->is_class("Texture")) {
|
||||
//texture already previews via itself
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", item->get_instance_ID());
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", item->get_instance_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4586,7 +4586,7 @@ void SectionedPropertyEditor::edit(Object *p_object) {
|
|||
return;
|
||||
}
|
||||
|
||||
ObjectID id = p_object->get_instance_ID();
|
||||
ObjectID id = p_object->get_instance_id();
|
||||
|
||||
if (obj != id) {
|
||||
|
||||
|
|
|
@ -418,7 +418,7 @@ void PropertySelector::select_method_from_script(const Ref<Script> &p_script, co
|
|||
base_type = p_script->get_instance_base_type();
|
||||
selected = p_current;
|
||||
type = Variant::NIL;
|
||||
script = p_script->get_instance_ID();
|
||||
script = p_script->get_instance_id();
|
||||
properties = false;
|
||||
instance = NULL;
|
||||
|
||||
|
@ -452,7 +452,7 @@ void PropertySelector::select_method_from_instance(Object *p_instance, const Str
|
|||
{
|
||||
Ref<Script> scr = p_instance->get_script();
|
||||
if (scr.is_valid())
|
||||
script = scr->get_instance_ID();
|
||||
script = scr->get_instance_id();
|
||||
}
|
||||
properties = false;
|
||||
instance = NULL;
|
||||
|
@ -485,7 +485,7 @@ void PropertySelector::select_property_from_script(const Ref<Script> &p_script,
|
|||
base_type = p_script->get_instance_base_type();
|
||||
selected = p_current;
|
||||
type = Variant::NIL;
|
||||
script = p_script->get_instance_ID();
|
||||
script = p_script->get_instance_id();
|
||||
properties = true;
|
||||
instance = NULL;
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ void ResourcesDock::_update_name(TreeItem *item) {
|
|||
else if (res->get_path() != "" && res->get_path().find("::") == -1)
|
||||
item->set_text(0, res->get_path().get_file());
|
||||
else
|
||||
item->set_text(0, res->get_class() + " (" + itos(res->get_instance_ID()) + ")");
|
||||
item->set_text(0, res->get_class() + " (" + itos(res->get_instance_id()) + ")");
|
||||
}
|
||||
|
||||
void ResourcesDock::remove_resource(const Ref<Resource> &p_resource) {
|
||||
|
|
|
@ -1369,8 +1369,8 @@ void SceneTreeDock::_delete_confirm() {
|
|||
editor_data->get_undo_redo().add_undo_reference(n);
|
||||
|
||||
ScriptEditorDebugger *sed = ScriptEditor::get_singleton()->get_debugger();
|
||||
editor_data->get_undo_redo().add_do_method(sed, "live_debug_remove_and_keep_node", edited_scene->get_path_to(n), n->get_instance_ID());
|
||||
editor_data->get_undo_redo().add_undo_method(sed, "live_debug_restore_node", n->get_instance_ID(), edited_scene->get_path_to(n->get_parent()), n->get_index());
|
||||
editor_data->get_undo_redo().add_do_method(sed, "live_debug_remove_and_keep_node", edited_scene->get_path_to(n), n->get_instance_id());
|
||||
editor_data->get_undo_redo().add_undo_method(sed, "live_debug_restore_node", n->get_instance_id(), edited_scene->get_path_to(n->get_parent()), n->get_index());
|
||||
}
|
||||
}
|
||||
editor_data->get_undo_redo().commit_action();
|
||||
|
@ -1824,7 +1824,7 @@ void SceneTreeDock::_add_children_to_popup(Object *p_obj, int p_depth) {
|
|||
int index = menu->get_item_count();
|
||||
menu->add_icon_item(icon, E->get().name.capitalize(), EDIT_SUBRESOURCE_BASE + subresources.size());
|
||||
menu->set_item_h_offset(index, p_depth * 10 * EDSCALE);
|
||||
subresources.push_back(obj->get_instance_ID());
|
||||
subresources.push_back(obj->get_instance_id());
|
||||
|
||||
_add_children_to_popup(obj, p_depth + 1);
|
||||
}
|
||||
|
|
|
@ -411,9 +411,9 @@ void SceneTreeEditor::_update_tree() {
|
|||
|
||||
void SceneTreeEditor::_compute_hash(Node *p_node, uint64_t &hash) {
|
||||
|
||||
hash = hash_djb2_one_64(p_node->get_instance_ID(), hash);
|
||||
hash = hash_djb2_one_64(p_node->get_instance_id(), hash);
|
||||
if (p_node->get_parent())
|
||||
hash = hash_djb2_one_64(p_node->get_parent()->get_instance_ID(), hash); //so a reparent still produces a different hash
|
||||
hash = hash_djb2_one_64(p_node->get_parent()->get_instance_id(), hash); //so a reparent still produces a different hash
|
||||
|
||||
for (int i = 0; i < p_node->get_child_count(); i++) {
|
||||
|
||||
|
@ -625,8 +625,8 @@ void SceneTreeEditor::_renamed() {
|
|||
} else {
|
||||
undo_redo->create_action(TTR("Rename Node"));
|
||||
emit_signal("node_prerename", n, new_name);
|
||||
undo_redo->add_do_method(this, "_rename_node", n->get_instance_ID(), new_name);
|
||||
undo_redo->add_undo_method(this, "_rename_node", n->get_instance_ID(), n->get_name());
|
||||
undo_redo->add_do_method(this, "_rename_node", n->get_instance_id(), new_name);
|
||||
undo_redo->add_undo_method(this, "_rename_node", n->get_instance_id(), n->get_name());
|
||||
undo_redo->commit_action();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ void EditorSpatialGizmo::redraw() {
|
|||
void EditorSpatialGizmo::Instance::create_instance(Spatial *p_base) {
|
||||
|
||||
instance = VS::get_singleton()->instance_create2(mesh->get_rid(), p_base->get_world()->get_scenario());
|
||||
VS::get_singleton()->instance_attach_object_instance_ID(instance, p_base->get_instance_ID());
|
||||
VS::get_singleton()->instance_attach_object_instance_id(instance, p_base->get_instance_id());
|
||||
if (skeleton.is_valid())
|
||||
VS::get_singleton()->instance_attach_skeleton(instance, skeleton);
|
||||
if (extra_margin)
|
||||
|
|
|
@ -203,7 +203,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
|
||||
MAIN_PRINT("Main: Initialize Globals");
|
||||
|
||||
Thread::_main_thread_id = Thread::get_caller_ID();
|
||||
Thread::_main_thread_id = Thread::get_caller_id();
|
||||
|
||||
globals = memnew(ProjectSettings);
|
||||
input_map = memnew(InputMap);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
text = """
|
||||
#define FUNC$numR(m_r,m_func,$argt)\\
|
||||
virtual m_r m_func($argtp) { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
m_r ret;\\
|
||||
command_queue.push_and_ret( visual_server, &VisualServer::m_func,$argp,&ret);\\
|
||||
return ret;\\
|
||||
|
@ -13,7 +13,7 @@ text = """
|
|||
|
||||
#define FUNC$numRC(m_r,m_func,$argt)\\
|
||||
virtual m_r m_func($argtp) const { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
m_r ret;\\
|
||||
command_queue.push_and_ret( visual_server, &VisualServer::m_func,$argp,&ret);\\
|
||||
return ret;\\
|
||||
|
@ -25,7 +25,7 @@ text = """
|
|||
|
||||
#define FUNC$numS(m_func,$argt)\\
|
||||
virtual void m_func($argtp) { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
command_queue.push_and_sync( visual_server, &VisualServer::m_func,$argp);\\
|
||||
} else {\\
|
||||
visual_server->m_func($argp);\\
|
||||
|
@ -34,7 +34,7 @@ text = """
|
|||
|
||||
#define FUNC$numSC(m_func,$argt)\\
|
||||
virtual void m_func($argtp) const { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
command_queue.push_and_sync( visual_server, &VisualServer::m_func,$argp);\\
|
||||
} else {\\
|
||||
visual_server->m_func($argp);\\
|
||||
|
@ -44,7 +44,7 @@ text = """
|
|||
|
||||
#define FUNC$num(m_func,$argt)\\
|
||||
virtual void m_func($argtp) { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
command_queue.push( visual_server, &VisualServer::m_func,$argp);\\
|
||||
} else {\\
|
||||
visual_server->m_func($argp);\\
|
||||
|
@ -53,7 +53,7 @@ text = """
|
|||
|
||||
#define FUNC$numC(m_func,$argt)\\
|
||||
virtual void m_func($argtp) const { \\
|
||||
if (Thread::get_caller_ID()!=server_thread) {\\
|
||||
if (Thread::get_caller_id()!=server_thread) {\\
|
||||
command_queue.push( visual_server, &VisualServer::m_func,$argp);\\
|
||||
} else {\\
|
||||
visual_server->m_func($argp);\\
|
||||
|
|
|
@ -508,7 +508,7 @@ uint32_t NetworkedMultiplayerENet::_gen_unique_id() const {
|
|||
(uint32_t)OS::get_singleton()->get_data_dir().hash64(), hash);
|
||||
/*
|
||||
hash = hash_djb2_one_32(
|
||||
(uint32_t)OS::get_singleton()->get_unique_ID().hash64(), hash );
|
||||
(uint32_t)OS::get_singleton()->get_unique_id().hash64(), hash );
|
||||
*/
|
||||
hash = hash_djb2_one_32(
|
||||
(uint32_t)((uint64_t)this), hash); //rely on aslr heap
|
||||
|
|
|
@ -157,7 +157,7 @@ Script *GDScriptLanguage::create_script() const {
|
|||
bool GDScriptLanguage::debug_break_parse(const String &p_file, int p_line, const String &p_error) {
|
||||
//break because of parse error
|
||||
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_ID() == Thread::get_main_ID()) {
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_id() == Thread::get_main_id()) {
|
||||
|
||||
_debug_parse_err_line = p_line;
|
||||
_debug_parse_err_file = p_file;
|
||||
|
@ -171,7 +171,7 @@ bool GDScriptLanguage::debug_break_parse(const String &p_file, int p_line, const
|
|||
|
||||
bool GDScriptLanguage::debug_break(const String &p_error, bool p_allow_continue) {
|
||||
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_ID() == Thread::get_main_ID()) {
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_id() == Thread::get_main_id()) {
|
||||
|
||||
_debug_parse_err_line = -1;
|
||||
_debug_parse_err_file = "";
|
||||
|
|
|
@ -888,8 +888,8 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
|||
gdfs->state._class = _class;
|
||||
gdfs->state.ip = ip + ipofs;
|
||||
gdfs->state.line = line;
|
||||
gdfs->state.instance_id = (p_instance && p_instance->get_owner()) ? p_instance->get_owner()->get_instance_ID() : 0;
|
||||
gdfs->state.script_id = _class->get_instance_ID();
|
||||
gdfs->state.instance_id = (p_instance && p_instance->get_owner()) ? p_instance->get_owner()->get_instance_id() : 0;
|
||||
gdfs->state.script_id = _class->get_instance_id();
|
||||
//gdfs->state.result_pos=ip+ipofs-1;
|
||||
gdfs->state.defarg = defarg;
|
||||
gdfs->state.instance = p_instance;
|
||||
|
|
|
@ -479,7 +479,7 @@ bool GDScript::_update_exports() {
|
|||
const GDParser::ClassNode *c = static_cast<const GDParser::ClassNode *>(root);
|
||||
|
||||
if (base_cache.is_valid()) {
|
||||
base_cache->inheriters_cache.erase(get_instance_ID());
|
||||
base_cache->inheriters_cache.erase(get_instance_id());
|
||||
base_cache = Ref<GDScript>();
|
||||
}
|
||||
|
||||
|
@ -505,7 +505,7 @@ bool GDScript::_update_exports() {
|
|||
|
||||
//print_line("parent is: "+bf->get_path());
|
||||
base_cache = bf;
|
||||
bf->inheriters_cache.insert(get_instance_ID());
|
||||
bf->inheriters_cache.insert(get_instance_id());
|
||||
|
||||
//bf->_update_exports(p_instances,true,false);
|
||||
}
|
||||
|
@ -1693,7 +1693,7 @@ void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_so
|
|||
if (obj->get_script_instance()) {
|
||||
|
||||
obj->get_script_instance()->get_property_state(state);
|
||||
map[obj->get_instance_ID()] = state;
|
||||
map[obj->get_instance_id()] = state;
|
||||
obj->set_script(RefPtr());
|
||||
}
|
||||
}
|
||||
|
@ -1709,7 +1709,7 @@ void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_so
|
|||
if (obj->get_script_instance()) {
|
||||
|
||||
obj->get_script_instance()->get_property_state(state);
|
||||
map[obj->get_instance_ID()] = state;
|
||||
map[obj->get_instance_id()] = state;
|
||||
obj->set_script(RefPtr());
|
||||
} else {
|
||||
// no instance found. Let's remove it so we don't loop forever
|
||||
|
@ -1743,8 +1743,8 @@ void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_so
|
|||
obj->set_script(scr.get_ref_ptr());
|
||||
if (!obj->get_script_instance()) {
|
||||
//failed, save reload state for next time if not saved
|
||||
if (!scr->pending_reload_state.has(obj->get_instance_ID())) {
|
||||
scr->pending_reload_state[obj->get_instance_ID()] = F->get();
|
||||
if (!scr->pending_reload_state.has(obj->get_instance_id())) {
|
||||
scr->pending_reload_state[obj->get_instance_id()] = F->get();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -1753,7 +1753,7 @@ void GDScriptLanguage::reload_tool_script(const Ref<Script> &p_script, bool p_so
|
|||
obj->get_script_instance()->set(G->get().first, G->get().second);
|
||||
}
|
||||
|
||||
scr->pending_reload_state.erase(obj->get_instance_ID()); //as it reloaded, remove pending state
|
||||
scr->pending_reload_state.erase(obj->get_instance_id()); //as it reloaded, remove pending state
|
||||
}
|
||||
|
||||
//if instance states were saved, set them!
|
||||
|
|
|
@ -298,7 +298,7 @@ public:
|
|||
|
||||
_FORCE_INLINE_ void enter_function(GDInstance *p_instance, GDFunction *p_function, Variant *p_stack, int *p_ip, int *p_line) {
|
||||
|
||||
if (Thread::get_main_ID() != Thread::get_caller_ID())
|
||||
if (Thread::get_main_id() != Thread::get_caller_id())
|
||||
return; //no support for other threads than main for now
|
||||
|
||||
if (ScriptDebugger::get_singleton()->get_lines_left() > 0 && ScriptDebugger::get_singleton()->get_depth() >= 0)
|
||||
|
@ -321,7 +321,7 @@ public:
|
|||
|
||||
_FORCE_INLINE_ void exit_function() {
|
||||
|
||||
if (Thread::get_main_ID() != Thread::get_caller_ID())
|
||||
if (Thread::get_main_id() != Thread::get_caller_id())
|
||||
return; //no support for other threads than main for now
|
||||
|
||||
if (ScriptDebugger::get_singleton()->get_lines_left() > 0 && ScriptDebugger::get_singleton()->get_depth() >= 0)
|
||||
|
@ -338,7 +338,7 @@ public:
|
|||
}
|
||||
|
||||
virtual Vector<StackInfo> debug_get_current_stack_info() {
|
||||
if (Thread::get_main_ID() != Thread::get_caller_ID())
|
||||
if (Thread::get_main_id() != Thread::get_caller_id())
|
||||
return Vector<StackInfo>();
|
||||
|
||||
Vector<StackInfo> csi;
|
||||
|
|
|
@ -345,7 +345,7 @@ void GridMap::set_cell_item(int p_x, int p_y, int p_z, int p_item, int p_rot) {
|
|||
Octant *g = memnew(Octant);
|
||||
g->dirty = true;
|
||||
g->static_body = PhysicsServer::get_singleton()->body_create(PhysicsServer::BODY_MODE_STATIC);
|
||||
PhysicsServer::get_singleton()->body_attach_object_instance_ID(g->static_body, get_instance_ID());
|
||||
PhysicsServer::get_singleton()->body_attach_object_instance_id(g->static_body, get_instance_id());
|
||||
if (is_inside_world())
|
||||
PhysicsServer::get_singleton()->body_set_space(g->static_body, get_world()->get_space());
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ void NativeScript::set_library(Ref<GDNativeLibrary> p_library) {
|
|||
lib_path = library->get_active_library_path();
|
||||
|
||||
#ifndef NO_THREADS
|
||||
if (Thread::get_caller_ID() != Thread::get_main_ID()) {
|
||||
if (Thread::get_caller_id() != Thread::get_main_id()) {
|
||||
NSL->defer_init_library(p_library, this);
|
||||
} else
|
||||
#endif
|
||||
|
|
|
@ -1607,8 +1607,8 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p
|
|||
}
|
||||
|
||||
//step 1, capture all state
|
||||
state->instance_id = get_owner_ptr()->get_instance_ID();
|
||||
state->script_id = get_script()->get_instance_ID();
|
||||
state->instance_id = get_owner_ptr()->get_instance_id();
|
||||
state->script_id = get_script()->get_instance_id();
|
||||
state->instance = this;
|
||||
state->function = p_method;
|
||||
state->working_mem_index = node->working_mem_idx;
|
||||
|
@ -2417,7 +2417,7 @@ void VisualScriptLanguage::add_global_constant(const StringName &p_variable, con
|
|||
bool VisualScriptLanguage::debug_break_parse(const String &p_file, int p_node, const String &p_error) {
|
||||
//break because of parse error
|
||||
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_ID() == Thread::get_main_ID()) {
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_id() == Thread::get_main_id()) {
|
||||
|
||||
_debug_parse_err_node = p_node;
|
||||
_debug_parse_err_file = p_file;
|
||||
|
@ -2431,7 +2431,7 @@ bool VisualScriptLanguage::debug_break_parse(const String &p_file, int p_node, c
|
|||
|
||||
bool VisualScriptLanguage::debug_break(const String &p_error, bool p_allow_continue) {
|
||||
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_ID() == Thread::get_main_ID()) {
|
||||
if (ScriptDebugger::get_singleton() && Thread::get_caller_id() == Thread::get_main_id()) {
|
||||
|
||||
_debug_parse_err_node = -1;
|
||||
_debug_parse_err_file = "";
|
||||
|
|
|
@ -509,7 +509,7 @@ public:
|
|||
|
||||
_FORCE_INLINE_ void enter_function(VisualScriptInstance *p_instance, const StringName *p_function, Variant *p_stack, Variant **p_work_mem, int *current_id) {
|
||||
|
||||
if (Thread::get_main_ID() != Thread::get_caller_ID())
|
||||
if (Thread::get_main_id() != Thread::get_caller_id())
|
||||
return; //no support for other threads than main for now
|
||||
|
||||
if (ScriptDebugger::get_singleton()->get_lines_left() > 0 && ScriptDebugger::get_singleton()->get_depth() >= 0)
|
||||
|
@ -532,7 +532,7 @@ public:
|
|||
|
||||
_FORCE_INLINE_ void exit_function() {
|
||||
|
||||
if (Thread::get_main_ID() != Thread::get_caller_ID())
|
||||
if (Thread::get_main_id() != Thread::get_caller_id())
|
||||
return; //no support for other threads than main for now
|
||||
|
||||
if (ScriptDebugger::get_singleton()->get_lines_left() > 0 && ScriptDebugger::get_singleton()->get_depth() >= 0)
|
||||
|
|
|
@ -615,7 +615,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
|||
|
||||
Ref<Resource> res = value;
|
||||
Array arr;
|
||||
arr.push_back(button->get_instance_ID());
|
||||
arr.push_back(button->get_instance_id());
|
||||
arr.push_back(String(value));
|
||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_button_resource_previewed", arr);
|
||||
|
||||
|
@ -1969,7 +1969,7 @@ String VisualScriptEditor::get_name() {
|
|||
} else if (script->get_name() != "")
|
||||
name = script->get_name();
|
||||
else
|
||||
name = script->get_class() + "(" + itos(script->get_instance_ID()) + ")";
|
||||
name = script->get_class() + "(" + itos(script->get_instance_id()) + ")";
|
||||
|
||||
return name;
|
||||
}
|
||||
|
|
|
@ -603,13 +603,13 @@ void VisualScriptFunctionCall::_validate_property(PropertyInfo &property) const
|
|||
|
||||
} else if (call_mode == CALL_MODE_SELF && get_visual_script().is_valid()) {
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_SCRIPT;
|
||||
property.hint_string = itos(get_visual_script()->get_instance_ID());
|
||||
property.hint_string = itos(get_visual_script()->get_instance_id());
|
||||
} else if (call_mode == CALL_MODE_SINGLETON) {
|
||||
|
||||
Object *obj = ProjectSettings::get_singleton()->get_singleton_object(singleton);
|
||||
if (obj) {
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_INSTANCE;
|
||||
property.hint_string = itos(obj->get_instance_ID());
|
||||
property.hint_string = itos(obj->get_instance_id());
|
||||
} else {
|
||||
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_BASE_TYPE;
|
||||
|
@ -631,7 +631,7 @@ void VisualScriptFunctionCall::_validate_property(PropertyInfo &property) const
|
|||
if (script.is_valid()) {
|
||||
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_SCRIPT;
|
||||
property.hint_string = itos(script->get_instance_ID());
|
||||
property.hint_string = itos(script->get_instance_id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -640,7 +640,7 @@ void VisualScriptFunctionCall::_validate_property(PropertyInfo &property) const
|
|||
Node *node = _get_base_node();
|
||||
if (node) {
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_INSTANCE;
|
||||
property.hint_string = itos(node->get_instance_ID());
|
||||
property.hint_string = itos(node->get_instance_id());
|
||||
} else {
|
||||
property.hint = PROPERTY_HINT_METHOD_OF_BASE_TYPE;
|
||||
property.hint_string = get_base_type();
|
||||
|
@ -1379,7 +1379,7 @@ void VisualScriptPropertySet::_validate_property(PropertyInfo &property) const {
|
|||
|
||||
} else if (call_mode == CALL_MODE_SELF && get_visual_script().is_valid()) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_SCRIPT;
|
||||
property.hint_string = itos(get_visual_script()->get_instance_ID());
|
||||
property.hint_string = itos(get_visual_script()->get_instance_id());
|
||||
} else if (call_mode == CALL_MODE_INSTANCE) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_BASE_TYPE;
|
||||
property.hint_string = base_type;
|
||||
|
@ -1396,7 +1396,7 @@ void VisualScriptPropertySet::_validate_property(PropertyInfo &property) const {
|
|||
if (script.is_valid()) {
|
||||
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_SCRIPT;
|
||||
property.hint_string = itos(script->get_instance_ID());
|
||||
property.hint_string = itos(script->get_instance_id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1405,7 +1405,7 @@ void VisualScriptPropertySet::_validate_property(PropertyInfo &property) const {
|
|||
Node *node = _get_base_node();
|
||||
if (node) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_INSTANCE;
|
||||
property.hint_string = itos(node->get_instance_ID());
|
||||
property.hint_string = itos(node->get_instance_id());
|
||||
} else {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_BASE_TYPE;
|
||||
property.hint_string = get_base_type();
|
||||
|
@ -2095,7 +2095,7 @@ void VisualScriptPropertyGet::_validate_property(PropertyInfo &property) const {
|
|||
|
||||
} else if (call_mode == CALL_MODE_SELF && get_visual_script().is_valid()) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_SCRIPT;
|
||||
property.hint_string = itos(get_visual_script()->get_instance_ID());
|
||||
property.hint_string = itos(get_visual_script()->get_instance_id());
|
||||
} else if (call_mode == CALL_MODE_INSTANCE) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_BASE_TYPE;
|
||||
property.hint_string = base_type;
|
||||
|
@ -2112,7 +2112,7 @@ void VisualScriptPropertyGet::_validate_property(PropertyInfo &property) const {
|
|||
if (script.is_valid()) {
|
||||
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_SCRIPT;
|
||||
property.hint_string = itos(script->get_instance_ID());
|
||||
property.hint_string = itos(script->get_instance_id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2120,7 +2120,7 @@ void VisualScriptPropertyGet::_validate_property(PropertyInfo &property) const {
|
|||
Node *node = _get_base_node();
|
||||
if (node) {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_INSTANCE;
|
||||
property.hint_string = itos(node->get_instance_ID());
|
||||
property.hint_string = itos(node->get_instance_id());
|
||||
} else {
|
||||
property.hint = PROPERTY_HINT_PROPERTY_OF_BASE_TYPE;
|
||||
property.hint_string = get_base_type();
|
||||
|
|
|
@ -895,7 +895,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_initialize(JNIEnv *en
|
|||
|
||||
JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_resize(JNIEnv *env, jobject obj, jint width, jint height, jboolean reload) {
|
||||
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "^_^_^_^_^ resize %lld, %i, %i\n", Thread::get_caller_ID(), width, height);
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "^_^_^_^_^ resize %lld, %i, %i\n", Thread::get_caller_id(), width, height);
|
||||
if (os_android)
|
||||
os_android->set_display_size(Size2(width, height));
|
||||
|
||||
|
@ -909,7 +909,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_resize(JNIEnv *env, j
|
|||
|
||||
JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_newcontext(JNIEnv *env, jobject obj, bool p_32_bits) {
|
||||
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "^_^_^_^_^ newcontext %lld\n", Thread::get_caller_ID());
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "^_^_^_^_^ newcontext %lld\n", Thread::get_caller_id());
|
||||
|
||||
if (os_android) {
|
||||
os_android->set_context_is_16_bits(!p_32_bits);
|
||||
|
@ -995,7 +995,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env, job
|
|||
|
||||
ThreadAndroid::setup_thread();
|
||||
|
||||
//__android_log_print(ANDROID_LOG_INFO,"godot","**STEP EVENT! - %p-%i\n",env,Thread::get_caller_ID());
|
||||
//__android_log_print(ANDROID_LOG_INFO,"godot","**STEP EVENT! - %p-%i\n",env,Thread::get_caller_id());
|
||||
|
||||
suspend_mutex->lock();
|
||||
input_mutex->lock();
|
||||
|
@ -1069,7 +1069,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env, job
|
|||
jclass cls = env->FindClass("org/godotengine/godot/Godot");
|
||||
jmethodID _finish = env->GetMethodID(cls, "forceQuit", "()V");
|
||||
env->CallVoidMethod(_godot_instance, _finish);
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "**FINISH REQUEST!!! - %p-%i\n", env, Thread::get_caller_ID());
|
||||
__android_log_print(ANDROID_LOG_INFO, "godot", "**FINISH REQUEST!!! - %p-%i\n", env, Thread::get_caller_id());
|
||||
}
|
||||
|
||||
suspend_mutex->unlock();
|
||||
|
@ -1077,7 +1077,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env, job
|
|||
|
||||
JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_touch(JNIEnv *env, jobject obj, jint ev, jint pointer, jint count, jintArray positions) {
|
||||
|
||||
//__android_log_print(ANDROID_LOG_INFO,"godot","**TOUCH EVENT! - %p-%i\n",env,Thread::get_caller_ID());
|
||||
//__android_log_print(ANDROID_LOG_INFO,"godot","**TOUCH EVENT! - %p-%i\n",env,Thread::get_caller_id());
|
||||
|
||||
Vector<OS_Android::TouchPos> points;
|
||||
for (int i = 0; i < count; i++) {
|
||||
|
|
|
@ -686,11 +686,11 @@ void OS_Android::set_screen_orientation(ScreenOrientation p_orientation) {
|
|||
set_screen_orientation_func(p_orientation);
|
||||
}
|
||||
|
||||
String OS_Android::get_unique_ID() const {
|
||||
String OS_Android::get_unique_id() const {
|
||||
|
||||
if (get_unique_id_func)
|
||||
return get_unique_id_func();
|
||||
return OS::get_unique_ID();
|
||||
return OS::get_unique_id();
|
||||
}
|
||||
|
||||
Error OS_Android::native_video_play(String p_path, float p_volume) {
|
||||
|
|
|
@ -222,7 +222,7 @@ public:
|
|||
virtual String get_model_name() const;
|
||||
virtual int get_screen_dpi(int p_screen = 0) const;
|
||||
|
||||
virtual String get_unique_ID() const;
|
||||
virtual String get_unique_id() const;
|
||||
|
||||
virtual String get_system_dir(SystemDir p_dir) const;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "os/memory.h"
|
||||
#include "script_language.h"
|
||||
|
||||
Thread::ID ThreadAndroid::get_ID() const {
|
||||
Thread::ID ThreadAndroid::get_id() const {
|
||||
|
||||
return id;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ Thread *ThreadAndroid::create_func_jandroid(ThreadCreateCallback p_callback, voi
|
|||
return tr;
|
||||
}
|
||||
|
||||
Thread::ID ThreadAndroid::get_thread_ID_func_jandroid() {
|
||||
Thread::ID ThreadAndroid::get_thread_id_func_jandroid() {
|
||||
|
||||
return (ID)pthread_self();
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ void ThreadAndroid::make_default(JavaVM *p_java_vm) {
|
|||
|
||||
java_vm = p_java_vm;
|
||||
create_func = create_func_jandroid;
|
||||
get_thread_ID_func = get_thread_ID_func_jandroid;
|
||||
get_thread_id_func = get_thread_id_func_jandroid;
|
||||
wait_to_finish_func = wait_to_finish_func_jandroid;
|
||||
pthread_key_create(&jvm_key, _thread_destroyed);
|
||||
setup_thread();
|
||||
|
|
|
@ -52,7 +52,7 @@ class ThreadAndroid : public Thread {
|
|||
static void *thread_callback(void *userdata);
|
||||
|
||||
static Thread *create_func_jandroid(ThreadCreateCallback p_callback, void *, const Settings &);
|
||||
static ID get_thread_ID_func_jandroid();
|
||||
static ID get_thread_id_func_jandroid();
|
||||
static void wait_to_finish_func_jandroid(Thread *p_thread);
|
||||
|
||||
static void _thread_destroyed(void *value);
|
||||
|
@ -62,7 +62,7 @@ class ThreadAndroid : public Thread {
|
|||
static JavaVM *java_vm;
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const;
|
||||
virtual ID get_id() const;
|
||||
|
||||
static void make_default(JavaVM *p_java_vm);
|
||||
static void setup_thread();
|
||||
|
|
|
@ -424,7 +424,7 @@ static int frame_count = 0;
|
|||
}
|
||||
}
|
||||
|
||||
OSIPhone::get_singleton()->set_unique_ID(String::utf8([uuid UTF8String]));
|
||||
OSIPhone::get_singleton()->set_unique_id(String::utf8([uuid UTF8String]));
|
||||
|
||||
}; break;
|
||||
/*
|
||||
|
|
|
@ -83,12 +83,12 @@ void OSIPhone::set_data_dir(String p_dir) {
|
|||
memdelete(da);
|
||||
};
|
||||
|
||||
void OSIPhone::set_unique_ID(String p_ID) {
|
||||
void OSIPhone::set_unique_id(String p_ID) {
|
||||
|
||||
unique_ID = p_ID;
|
||||
};
|
||||
|
||||
String OSIPhone::get_unique_ID() const {
|
||||
String OSIPhone::get_unique_id() const {
|
||||
|
||||
return unique_ID;
|
||||
};
|
||||
|
|
|
@ -190,8 +190,8 @@ public:
|
|||
void set_locale(String p_locale);
|
||||
String get_locale() const;
|
||||
|
||||
void set_unique_ID(String p_ID);
|
||||
String get_unique_ID() const;
|
||||
void set_unique_id(String p_ID);
|
||||
String get_unique_id() const;
|
||||
|
||||
virtual Error native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track);
|
||||
virtual bool native_video_is_playing() const;
|
||||
|
|
|
@ -41,7 +41,7 @@ Thread *ThreadUWP::create_func_uwp(ThreadCreateCallback p_callback, void *p_user
|
|||
return thread;
|
||||
};
|
||||
|
||||
Thread::ID ThreadUWP::get_thread_ID_func_uwp() {
|
||||
Thread::ID ThreadUWP::get_thread_id_func_uwp() {
|
||||
|
||||
return std::hash<std::thread::id>()(std::this_thread::get_id());
|
||||
};
|
||||
|
@ -52,14 +52,14 @@ void ThreadUWP::wait_to_finish_func_uwp(Thread *p_thread) {
|
|||
tp->thread.join();
|
||||
};
|
||||
|
||||
Thread::ID ThreadUWP::get_ID() const {
|
||||
Thread::ID ThreadUWP::get_id() const {
|
||||
|
||||
return std::hash<std::thread::id>()(thread.get_id());
|
||||
};
|
||||
|
||||
void ThreadUWP::make_default() {
|
||||
create_func = create_func_uwp;
|
||||
get_thread_ID_func = get_thread_ID_func_uwp;
|
||||
get_thread_id_func = get_thread_id_func_uwp;
|
||||
wait_to_finish_func = wait_to_finish_func_uwp;
|
||||
};
|
||||
|
||||
|
|
|
@ -41,13 +41,13 @@ class ThreadUWP : public Thread {
|
|||
std::thread thread;
|
||||
|
||||
static Thread *create_func_uwp(ThreadCreateCallback p_callback, void *, const Settings &);
|
||||
static ID get_thread_ID_func_uwp();
|
||||
static ID get_thread_id_func_uwp();
|
||||
static void wait_to_finish_func_uwp(Thread *p_thread);
|
||||
|
||||
ThreadUWP();
|
||||
|
||||
public:
|
||||
virtual ID get_ID() const;
|
||||
virtual ID get_id() const;
|
||||
|
||||
static void make_default();
|
||||
|
||||
|
|
|
@ -1952,7 +1952,7 @@ Error OS_Windows::kill(const ProcessID &p_pid) {
|
|||
return ret != 0 ? OK : FAILED;
|
||||
};
|
||||
|
||||
int OS_Windows::get_process_ID() const {
|
||||
int OS_Windows::get_process_id() const {
|
||||
return _getpid();
|
||||
}
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ public:
|
|||
|
||||
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL);
|
||||
virtual Error kill(const ProcessID &p_pid);
|
||||
virtual int get_process_ID() const;
|
||||
virtual int get_process_id() const;
|
||||
|
||||
virtual bool has_environment(const String &p_var) const;
|
||||
virtual String get_environment(const String &p_var) const;
|
||||
|
|
|
@ -480,7 +480,7 @@ Array Area2D::get_overlapping_areas() const {
|
|||
bool Area2D::overlaps_area(Node *p_area) const {
|
||||
|
||||
ERR_FAIL_NULL_V(p_area, false);
|
||||
const Map<ObjectID, AreaState>::Element *E = area_map.find(p_area->get_instance_ID());
|
||||
const Map<ObjectID, AreaState>::Element *E = area_map.find(p_area->get_instance_id());
|
||||
if (!E)
|
||||
return false;
|
||||
return E->get().in_tree;
|
||||
|
@ -489,7 +489,7 @@ bool Area2D::overlaps_area(Node *p_area) const {
|
|||
bool Area2D::overlaps_body(Node *p_body) const {
|
||||
|
||||
ERR_FAIL_NULL_V(p_body, false);
|
||||
const Map<ObjectID, BodyState>::Element *E = body_map.find(p_body->get_instance_ID());
|
||||
const Map<ObjectID, BodyState>::Element *E = body_map.find(p_body->get_instance_id());
|
||||
if (!E)
|
||||
return false;
|
||||
return E->get().in_tree;
|
||||
|
|
|
@ -580,7 +580,7 @@ void Camera2D::set_custom_viewport(Node *p_viewport) {
|
|||
custom_viewport = p_viewport->cast_to<Viewport>();
|
||||
|
||||
if (custom_viewport) {
|
||||
custom_viewport_id = custom_viewport->get_instance_ID();
|
||||
custom_viewport_id = custom_viewport->get_instance_id();
|
||||
} else {
|
||||
custom_viewport_id = 0;
|
||||
}
|
||||
|
|
|
@ -372,9 +372,9 @@ CollisionObject2D::CollisionObject2D(RID p_rid, bool p_area) {
|
|||
|
||||
if (p_area) {
|
||||
|
||||
Physics2DServer::get_singleton()->area_attach_object_instance_ID(rid, get_instance_ID());
|
||||
Physics2DServer::get_singleton()->area_attach_object_instance_id(rid, get_instance_id());
|
||||
} else {
|
||||
Physics2DServer::get_singleton()->body_attach_object_instance_ID(rid, get_instance_ID());
|
||||
Physics2DServer::get_singleton()->body_attach_object_instance_id(rid, get_instance_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ void RemoteTransform2D::_update_cache() {
|
|||
return;
|
||||
}
|
||||
|
||||
cache = node->get_instance_ID();
|
||||
cache = node->get_instance_id();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -589,7 +589,7 @@ Map<TileMap::PosKey, TileMap::Quadrant>::Element *TileMap::_create_quadrant(cons
|
|||
xform.set_origin(q.pos);
|
||||
//q.canvas_item = VisualServer::get_singleton()->canvas_item_create();
|
||||
q.body = Physics2DServer::get_singleton()->body_create(use_kinematic ? Physics2DServer::BODY_MODE_KINEMATIC : Physics2DServer::BODY_MODE_STATIC);
|
||||
Physics2DServer::get_singleton()->body_attach_object_instance_ID(q.body, get_instance_ID());
|
||||
Physics2DServer::get_singleton()->body_attach_object_instance_id(q.body, get_instance_id());
|
||||
Physics2DServer::get_singleton()->body_set_collision_layer(q.body, collision_layer);
|
||||
Physics2DServer::get_singleton()->body_set_collision_mask(q.body, collision_mask);
|
||||
Physics2DServer::get_singleton()->body_set_param(q.body, Physics2DServer::BODY_PARAM_FRICTION, friction);
|
||||
|
|
|
@ -475,7 +475,7 @@ Array Area::get_overlapping_areas() const {
|
|||
bool Area::overlaps_area(Node *p_area) const {
|
||||
|
||||
ERR_FAIL_NULL_V(p_area, false);
|
||||
const Map<ObjectID, AreaState>::Element *E = area_map.find(p_area->get_instance_ID());
|
||||
const Map<ObjectID, AreaState>::Element *E = area_map.find(p_area->get_instance_id());
|
||||
if (!E)
|
||||
return false;
|
||||
return E->get().in_tree;
|
||||
|
@ -484,7 +484,7 @@ bool Area::overlaps_area(Node *p_area) const {
|
|||
bool Area::overlaps_body(Node *p_body) const {
|
||||
|
||||
ERR_FAIL_NULL_V(p_body, false);
|
||||
const Map<ObjectID, BodyState>::Element *E = body_map.find(p_body->get_instance_ID());
|
||||
const Map<ObjectID, BodyState>::Element *E = body_map.find(p_body->get_instance_id());
|
||||
if (!E)
|
||||
return false;
|
||||
return E->get().in_tree;
|
||||
|
|
|
@ -346,9 +346,9 @@ CollisionObject::CollisionObject(RID p_rid, bool p_area) {
|
|||
total_subshapes = 0;
|
||||
|
||||
if (p_area) {
|
||||
PhysicsServer::get_singleton()->area_attach_object_instance_ID(rid, get_instance_ID());
|
||||
PhysicsServer::get_singleton()->area_attach_object_instance_id(rid, get_instance_id());
|
||||
} else {
|
||||
PhysicsServer::get_singleton()->body_attach_object_instance_ID(rid, get_instance_ID());
|
||||
PhysicsServer::get_singleton()->body_attach_object_instance_id(rid, get_instance_id());
|
||||
}
|
||||
//set_transform_notify(true);
|
||||
}
|
||||
|
|
|
@ -979,9 +979,9 @@ Generic6DOFJoint::Generic6DOFJoint() {
|
|||
void PhysicsJoint::_set(const String& p_name, const Variant& p_value) {
|
||||
|
||||
if (p_name=="body_A")
|
||||
set_body_A(p_value);
|
||||
set_body_a(p_value);
|
||||
else if (p_name=="body_B")
|
||||
set_body_B(p_value);
|
||||
set_body_b(p_value);
|
||||
else if (p_name=="active")
|
||||
set_active(p_value);
|
||||
else if (p_name=="no_collision")
|
||||
|
@ -990,9 +990,9 @@ void PhysicsJoint::_set(const String& p_name, const Variant& p_value) {
|
|||
Variant PhysicsJoint::_get(const String& p_name) const {
|
||||
|
||||
if (p_name=="body_A")
|
||||
return get_body_A();
|
||||
return get_body_a();
|
||||
else if (p_name=="body_B")
|
||||
return get_body_B();
|
||||
return get_body_b();
|
||||
else if (p_name=="active")
|
||||
return is_active();
|
||||
else if (p_name=="no_collision")
|
||||
|
@ -1034,7 +1034,7 @@ void PhysicsJoint::_notification(int p_what) {
|
|||
if (indicator.is_valid()) {
|
||||
|
||||
indicator_instance=VisualServer::get_singleton()->instance_create(indicator,get_world()->get_scenario());
|
||||
VisualServer::get_singleton()->instance_attach_object_instance_ID( indicator_instance,get_instance_ID() );
|
||||
VisualServer::get_singleton()->instance_attach_object_instance_id( indicator_instance,get_instance_id() );
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_TRANSFORM_CHANGED: {
|
||||
|
@ -1067,10 +1067,10 @@ RID PhysicsJoint::_get_visual_instance_rid() const {
|
|||
void PhysicsJoint::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_get_visual_instance_rid"),&PhysicsJoint::_get_visual_instance_rid);
|
||||
ClassDB::bind_method(D_METHOD("set_body_A","path"),&PhysicsJoint::set_body_A);
|
||||
ClassDB::bind_method(D_METHOD("set_body_B"),&PhysicsJoint::set_body_B);
|
||||
ClassDB::bind_method(D_METHOD("get_body_A","path"),&PhysicsJoint::get_body_A);
|
||||
ClassDB::bind_method(D_METHOD("get_body_B"),&PhysicsJoint::get_body_B);
|
||||
ClassDB::bind_method(D_METHOD("set_body_a","path"),&PhysicsJoint::set_body_a);
|
||||
ClassDB::bind_method(D_METHOD("set_body_b"),&PhysicsJoint::set_body_b);
|
||||
ClassDB::bind_method(D_METHOD("get_body_a","path"),&PhysicsJoint::get_body_a);
|
||||
ClassDB::bind_method(D_METHOD("get_body_b"),&PhysicsJoint::get_body_b);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_active","active"),&PhysicsJoint::set_active);
|
||||
ClassDB::bind_method(D_METHOD("is_active"),&PhysicsJoint::is_active);
|
||||
|
@ -1085,14 +1085,14 @@ void PhysicsJoint::_bind_methods() {
|
|||
|
||||
}
|
||||
|
||||
void PhysicsJoint::set_body_A(const NodePath& p_path) {
|
||||
void PhysicsJoint::set_body_a(const NodePath& p_path) {
|
||||
|
||||
_disconnect();
|
||||
body_A=p_path;
|
||||
_connect();
|
||||
_change_notify("body_A");
|
||||
}
|
||||
void PhysicsJoint::set_body_B(const NodePath& p_path) {
|
||||
void PhysicsJoint::set_body_b(const NodePath& p_path) {
|
||||
|
||||
_disconnect();
|
||||
body_B=p_path;
|
||||
|
@ -1100,11 +1100,11 @@ void PhysicsJoint::set_body_B(const NodePath& p_path) {
|
|||
_change_notify("body_B");
|
||||
|
||||
}
|
||||
NodePath PhysicsJoint::get_body_A() const {
|
||||
NodePath PhysicsJoint::get_body_a() const {
|
||||
|
||||
return body_A;
|
||||
}
|
||||
NodePath PhysicsJoint::get_body_B() const {
|
||||
NodePath PhysicsJoint::get_body_b() const {
|
||||
|
||||
return body_B;
|
||||
}
|
||||
|
|
|
@ -354,10 +354,10 @@ protected:
|
|||
void _connect();
|
||||
public:
|
||||
|
||||
void set_body_A(const NodePath& p_path);
|
||||
void set_body_B(const NodePath& p_path);
|
||||
NodePath get_body_A() const;
|
||||
NodePath get_body_B() const;
|
||||
void set_body_a(const NodePath& p_path);
|
||||
void set_body_b(const NodePath& p_path);
|
||||
NodePath get_body_a() const;
|
||||
NodePath get_body_b() const;
|
||||
|
||||
void set_active(bool p_active);
|
||||
bool is_active() const;
|
||||
|
|
|
@ -39,7 +39,7 @@ void RemoteTransform::_update_cache() {
|
|||
return;
|
||||
}
|
||||
|
||||
cache = node->get_instance_ID();
|
||||
cache = node->get_instance_id();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ void Skeleton::bind_child_node_to_bone(int p_bone, Node *p_node) {
|
|||
ERR_FAIL_NULL(p_node);
|
||||
ERR_FAIL_INDEX(p_bone, bones.size());
|
||||
|
||||
uint32_t id = p_node->get_instance_ID();
|
||||
uint32_t id = p_node->get_instance_id();
|
||||
|
||||
for (List<uint32_t>::Element *E = bones[p_bone].nodes_bound.front(); E; E = E->next()) {
|
||||
|
||||
|
@ -422,7 +422,7 @@ void Skeleton::unbind_child_node_from_bone(int p_bone, Node *p_node) {
|
|||
ERR_FAIL_NULL(p_node);
|
||||
ERR_FAIL_INDEX(p_bone, bones.size());
|
||||
|
||||
uint32_t id = p_node->get_instance_ID();
|
||||
uint32_t id = p_node->get_instance_id();
|
||||
bones[p_bone].nodes_bound.erase(id);
|
||||
}
|
||||
void Skeleton::get_bound_child_nodes_to_bone(int p_bone, List<Node *> *p_bound) const {
|
||||
|
|
|
@ -149,7 +149,7 @@ void VisualInstance::set_base(const RID &p_base) {
|
|||
VisualInstance::VisualInstance() {
|
||||
|
||||
instance = VisualServer::get_singleton()->instance_create();
|
||||
VisualServer::get_singleton()->instance_attach_object_instance_ID(instance, get_instance_ID());
|
||||
VisualServer::get_singleton()->instance_attach_object_instance_id(instance, get_instance_id());
|
||||
layers = 1;
|
||||
set_notify_transform(true);
|
||||
}
|
||||
|
|
|
@ -247,7 +247,7 @@ void AnimationPlayer::_generate_node_caches(AnimationData *p_anim) {
|
|||
ERR_EXPLAIN("On Animation: '" + p_anim->name + "', couldn't resolve track: '" + String(a->track_get_path(i)) + "'");
|
||||
}
|
||||
ERR_CONTINUE(!child); // couldn't find the child node
|
||||
uint32_t id = resource.is_valid() ? resource->get_instance_ID() : child->get_instance_ID();
|
||||
uint32_t id = resource.is_valid() ? resource->get_instance_id() : child->get_instance_id();
|
||||
int bone_idx = -1;
|
||||
|
||||
if (a->track_get_path(i).get_property() && child->cast_to<Skeleton>()) {
|
||||
|
|
|
@ -1481,7 +1481,7 @@ AnimationTreePlayer::Track *AnimationTreePlayer::_find_track(const NodePath &p_p
|
|||
return NULL;
|
||||
}
|
||||
|
||||
ObjectID id = child->get_instance_ID();
|
||||
ObjectID id = child->get_instance_id();
|
||||
StringName property;
|
||||
int bone_idx = -1;
|
||||
|
||||
|
|
|
@ -1024,7 +1024,7 @@ bool Tween::interpolate_property(Object *p_object, String p_property, Variant p_
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_property;
|
||||
data.initial_val = p_initial_val;
|
||||
data.final_val = p_final_val;
|
||||
|
@ -1066,7 +1066,7 @@ bool Tween::interpolate_method(Object *p_object, String p_method, Variant p_init
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_method;
|
||||
data.initial_val = p_initial_val;
|
||||
data.final_val = p_final_val;
|
||||
|
@ -1103,7 +1103,7 @@ bool Tween::interpolate_callback(Object *p_object, real_t p_duration, String p_c
|
|||
data.call_deferred = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_callback;
|
||||
data.duration = p_duration;
|
||||
data.delay = 0;
|
||||
|
@ -1155,7 +1155,7 @@ bool Tween::interpolate_deferred_callback(Object *p_object, real_t p_duration, S
|
|||
data.call_deferred = true;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_callback;
|
||||
data.duration = p_duration;
|
||||
data.delay = 0;
|
||||
|
@ -1222,10 +1222,10 @@ bool Tween::follow_property(Object *p_object, String p_property, Variant p_initi
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_property;
|
||||
data.initial_val = p_initial_val;
|
||||
data.target_id = p_target->get_instance_ID();
|
||||
data.target_id = p_target->get_instance_id();
|
||||
data.target_key = p_target_property;
|
||||
data.duration = p_duration;
|
||||
data.trans_type = p_trans_type;
|
||||
|
@ -1272,10 +1272,10 @@ bool Tween::follow_method(Object *p_object, String p_method, Variant p_initial_v
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_method;
|
||||
data.initial_val = p_initial_val;
|
||||
data.target_id = p_target->get_instance_ID();
|
||||
data.target_id = p_target->get_instance_id();
|
||||
data.target_key = p_target_method;
|
||||
data.duration = p_duration;
|
||||
data.trans_type = p_trans_type;
|
||||
|
@ -1321,9 +1321,9 @@ bool Tween::targeting_property(Object *p_object, String p_property, Object *p_in
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_property;
|
||||
data.target_id = p_initial->get_instance_ID();
|
||||
data.target_id = p_initial->get_instance_id();
|
||||
data.target_key = p_initial_property;
|
||||
data.initial_val = initial_val;
|
||||
data.final_val = p_final_val;
|
||||
|
@ -1375,9 +1375,9 @@ bool Tween::targeting_method(Object *p_object, String p_method, Object *p_initia
|
|||
data.finish = false;
|
||||
data.elapsed = 0;
|
||||
|
||||
data.id = p_object->get_instance_ID();
|
||||
data.id = p_object->get_instance_id();
|
||||
data.key = p_method;
|
||||
data.target_id = p_initial->get_instance_ID();
|
||||
data.target_id = p_initial->get_instance_id();
|
||||
data.target_key = p_initial_method;
|
||||
data.initial_val = initial_val;
|
||||
data.final_val = p_final_val;
|
||||
|
|
|
@ -603,7 +603,7 @@ bool Control::has_point(const Point2 &p_point) const {
|
|||
void Control::set_drag_forwarding(Control *p_target) {
|
||||
|
||||
if (p_target)
|
||||
data.drag_owner = p_target->get_instance_ID();
|
||||
data.drag_owner = p_target->get_instance_id();
|
||||
else
|
||||
data.drag_owner = 0;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ void OptionButton::_selected(int p_which) {
|
|||
int selid = -1;
|
||||
for (int i = 0; i < popup->get_item_count(); i++) {
|
||||
|
||||
bool is_clicked = popup->get_item_ID(i) == p_which;
|
||||
bool is_clicked = popup->get_item_id(i) == p_which;
|
||||
if (is_clicked) {
|
||||
selid = i;
|
||||
break;
|
||||
|
@ -129,9 +129,9 @@ void OptionButton::set_item_icon(int p_idx, const Ref<Texture> &p_icon) {
|
|||
|
||||
popup->set_item_icon(p_idx, p_icon);
|
||||
}
|
||||
void OptionButton::set_item_ID(int p_idx, int p_ID) {
|
||||
void OptionButton::set_item_id(int p_idx, int p_ID) {
|
||||
|
||||
popup->set_item_ID(p_idx, p_ID);
|
||||
popup->set_item_id(p_idx, p_ID);
|
||||
}
|
||||
|
||||
void OptionButton::set_item_metadata(int p_idx, const Variant &p_metadata) {
|
||||
|
@ -154,9 +154,9 @@ Ref<Texture> OptionButton::get_item_icon(int p_idx) const {
|
|||
return popup->get_item_icon(p_idx);
|
||||
}
|
||||
|
||||
int OptionButton::get_item_ID(int p_idx) const {
|
||||
int OptionButton::get_item_id(int p_idx) const {
|
||||
|
||||
return popup->get_item_ID(p_idx);
|
||||
return popup->get_item_id(p_idx);
|
||||
}
|
||||
Variant OptionButton::get_item_metadata(int p_idx) const {
|
||||
|
||||
|
@ -224,12 +224,12 @@ int OptionButton::get_selected() const {
|
|||
return current;
|
||||
}
|
||||
|
||||
int OptionButton::get_selected_ID() const {
|
||||
int OptionButton::get_selected_id() const {
|
||||
|
||||
int idx = get_selected();
|
||||
if (idx < 0)
|
||||
return 0;
|
||||
return get_item_ID(current);
|
||||
return get_item_id(current);
|
||||
}
|
||||
Variant OptionButton::get_selected_metadata() const {
|
||||
|
||||
|
@ -252,7 +252,7 @@ Array OptionButton::_get_items() const {
|
|||
items.push_back(get_item_text(i));
|
||||
items.push_back(get_item_icon(i));
|
||||
items.push_back(is_item_disabled(i));
|
||||
items.push_back(get_item_ID(i));
|
||||
items.push_back(get_item_id(i));
|
||||
items.push_back(get_item_metadata(i));
|
||||
}
|
||||
|
||||
|
@ -293,11 +293,11 @@ void OptionButton::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_item_text", "idx", "text"), &OptionButton::set_item_text);
|
||||
ClassDB::bind_method(D_METHOD("set_item_icon", "idx", "texture:Texture"), &OptionButton::set_item_icon);
|
||||
ClassDB::bind_method(D_METHOD("set_item_disabled", "idx", "disabled"), &OptionButton::set_item_disabled);
|
||||
ClassDB::bind_method(D_METHOD("set_item_ID", "idx", "id"), &OptionButton::set_item_ID);
|
||||
ClassDB::bind_method(D_METHOD("set_item_id", "idx", "id"), &OptionButton::set_item_id);
|
||||
ClassDB::bind_method(D_METHOD("set_item_metadata", "idx", "metadata"), &OptionButton::set_item_metadata);
|
||||
ClassDB::bind_method(D_METHOD("get_item_text", "idx"), &OptionButton::get_item_text);
|
||||
ClassDB::bind_method(D_METHOD("get_item_icon:Texture", "idx"), &OptionButton::get_item_icon);
|
||||
ClassDB::bind_method(D_METHOD("get_item_ID", "idx"), &OptionButton::get_item_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_item_id", "idx"), &OptionButton::get_item_id);
|
||||
ClassDB::bind_method(D_METHOD("get_item_metadata:Variant", "idx"), &OptionButton::get_item_metadata);
|
||||
ClassDB::bind_method(D_METHOD("is_item_disabled", "idx"), &OptionButton::is_item_disabled);
|
||||
ClassDB::bind_method(D_METHOD("get_item_count"), &OptionButton::get_item_count);
|
||||
|
@ -305,7 +305,7 @@ void OptionButton::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("clear"), &OptionButton::clear);
|
||||
ClassDB::bind_method(D_METHOD("select", "idx"), &OptionButton::select);
|
||||
ClassDB::bind_method(D_METHOD("get_selected"), &OptionButton::get_selected);
|
||||
ClassDB::bind_method(D_METHOD("get_selected_ID"), &OptionButton::get_selected_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_selected_id"), &OptionButton::get_selected_id);
|
||||
ClassDB::bind_method(D_METHOD("get_selected_metadata:Variant"), &OptionButton::get_selected_metadata);
|
||||
ClassDB::bind_method(D_METHOD("remove_item", "idx"), &OptionButton::remove_item);
|
||||
ClassDB::bind_method(D_METHOD("_select_int"), &OptionButton::_select_int);
|
||||
|
|
|
@ -62,13 +62,13 @@ public:
|
|||
|
||||
void set_item_text(int p_idx, const String &p_text);
|
||||
void set_item_icon(int p_idx, const Ref<Texture> &p_icon);
|
||||
void set_item_ID(int p_idx, int p_ID);
|
||||
void set_item_id(int p_idx, int p_ID);
|
||||
void set_item_metadata(int p_idx, const Variant &p_metadata);
|
||||
void set_item_disabled(int p_idx, bool p_disabled);
|
||||
|
||||
String get_item_text(int p_idx) const;
|
||||
Ref<Texture> get_item_icon(int p_idx) const;
|
||||
int get_item_ID(int p_idx) const;
|
||||
int get_item_id(int p_idx) const;
|
||||
Variant get_item_metadata(int p_idx) const;
|
||||
bool is_item_disabled(int p_idx) const;
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
|
||||
void select(int p_idx);
|
||||
int get_selected() const;
|
||||
int get_selected_ID() const;
|
||||
int get_selected_id() const;
|
||||
Variant get_selected_metadata() const;
|
||||
|
||||
void remove_item(int p_idx);
|
||||
|
|
|
@ -647,7 +647,7 @@ void PopupMenu::set_item_checked(int p_idx, bool p_checked) {
|
|||
|
||||
update();
|
||||
}
|
||||
void PopupMenu::set_item_ID(int p_idx, int p_ID) {
|
||||
void PopupMenu::set_item_id(int p_idx, int p_ID) {
|
||||
|
||||
ERR_FAIL_INDEX(p_idx, items.size());
|
||||
items[p_idx].ID = p_ID;
|
||||
|
@ -737,7 +737,7 @@ bool PopupMenu::is_item_checked(int p_idx) const {
|
|||
return items[p_idx].checked;
|
||||
}
|
||||
|
||||
int PopupMenu::get_item_ID(int p_idx) const {
|
||||
int PopupMenu::get_item_id(int p_idx) const {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_idx, items.size(), 0);
|
||||
return items[p_idx].ID;
|
||||
|
@ -956,7 +956,7 @@ Array PopupMenu::_get_items() const {
|
|||
items.push_back(is_item_checked(i));
|
||||
items.push_back(is_item_disabled(i));
|
||||
|
||||
items.push_back(get_item_ID(i));
|
||||
items.push_back(get_item_id(i));
|
||||
items.push_back(get_item_accelerator(i));
|
||||
items.push_back(get_item_metadata(i));
|
||||
items.push_back(get_item_submenu(i));
|
||||
|
@ -1011,7 +1011,7 @@ void PopupMenu::_set_items(const Array &p_items) {
|
|||
set_item_as_checkable(idx, checkable);
|
||||
set_item_checked(idx, checked);
|
||||
set_item_disabled(idx, disabled);
|
||||
set_item_ID(idx, id);
|
||||
set_item_id(idx, id);
|
||||
set_item_metadata(idx, meta);
|
||||
set_item_as_separator(idx, sep);
|
||||
set_item_accelerator(idx, accel);
|
||||
|
@ -1089,7 +1089,7 @@ void PopupMenu::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("set_item_text", "idx", "text"), &PopupMenu::set_item_text);
|
||||
ClassDB::bind_method(D_METHOD("set_item_icon", "idx", "icon:Texture"), &PopupMenu::set_item_icon);
|
||||
ClassDB::bind_method(D_METHOD("set_item_checked", "idx", "checked"), &PopupMenu::set_item_checked);
|
||||
ClassDB::bind_method(D_METHOD("set_item_ID", "idx", "id"), &PopupMenu::set_item_ID);
|
||||
ClassDB::bind_method(D_METHOD("set_item_id", "idx", "id"), &PopupMenu::set_item_id);
|
||||
ClassDB::bind_method(D_METHOD("set_item_accelerator", "idx", "accel"), &PopupMenu::set_item_accelerator);
|
||||
ClassDB::bind_method(D_METHOD("set_item_metadata", "idx", "metadata"), &PopupMenu::set_item_metadata);
|
||||
ClassDB::bind_method(D_METHOD("set_item_disabled", "idx", "disabled"), &PopupMenu::set_item_disabled);
|
||||
|
@ -1104,7 +1104,7 @@ void PopupMenu::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("get_item_text", "idx"), &PopupMenu::get_item_text);
|
||||
ClassDB::bind_method(D_METHOD("get_item_icon:Texture", "idx"), &PopupMenu::get_item_icon);
|
||||
ClassDB::bind_method(D_METHOD("is_item_checked", "idx"), &PopupMenu::is_item_checked);
|
||||
ClassDB::bind_method(D_METHOD("get_item_ID", "idx"), &PopupMenu::get_item_ID);
|
||||
ClassDB::bind_method(D_METHOD("get_item_id", "idx"), &PopupMenu::get_item_id);
|
||||
ClassDB::bind_method(D_METHOD("get_item_index", "id"), &PopupMenu::get_item_index);
|
||||
ClassDB::bind_method(D_METHOD("get_item_accelerator", "idx"), &PopupMenu::get_item_accelerator);
|
||||
ClassDB::bind_method(D_METHOD("get_item_metadata:Variant", "idx"), &PopupMenu::get_item_metadata);
|
||||
|
|
|
@ -118,7 +118,7 @@ public:
|
|||
void set_item_text(int p_idx, const String &p_text);
|
||||
void set_item_icon(int p_idx, const Ref<Texture> &p_icon);
|
||||
void set_item_checked(int p_idx, bool p_checked);
|
||||
void set_item_ID(int p_idx, int p_ID);
|
||||
void set_item_id(int p_idx, int p_ID);
|
||||
void set_item_accelerator(int p_idx, uint32_t p_accel);
|
||||
void set_item_metadata(int p_idx, const Variant &p_meta);
|
||||
void set_item_disabled(int p_idx, bool p_disabled);
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
int get_item_idx_from_text(const String &text) const;
|
||||
Ref<Texture> get_item_icon(int p_idx) const;
|
||||
bool is_item_checked(int p_idx) const;
|
||||
int get_item_ID(int p_idx) const;
|
||||
int get_item_id(int p_idx) const;
|
||||
int get_item_index(int p_ID) const;
|
||||
uint32_t get_item_accelerator(int p_idx) const;
|
||||
Variant get_item_metadata(int p_idx) const;
|
||||
|
|
|
@ -291,7 +291,7 @@ void TreeItem::set_custom_draw(int p_column, Object *p_object, const StringName
|
|||
ERR_FAIL_INDEX(p_column, cells.size());
|
||||
ERR_FAIL_NULL(p_object);
|
||||
|
||||
cells[p_column].custom_draw_obj = p_object->get_instance_ID();
|
||||
cells[p_column].custom_draw_obj = p_object->get_instance_id();
|
||||
cells[p_column].custom_draw_callback = p_callback;
|
||||
}
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ void CanvasLayer::set_custom_viewport(Node *p_viewport) {
|
|||
custom_viewport = p_viewport->cast_to<Viewport>();
|
||||
|
||||
if (custom_viewport) {
|
||||
custom_viewport_id = custom_viewport->get_instance_ID();
|
||||
custom_viewport_id = custom_viewport->get_instance_id();
|
||||
} else {
|
||||
custom_viewport_id = 0;
|
||||
}
|
||||
|
|
|
@ -77,11 +77,11 @@ void Node::_notification(int p_notification) {
|
|||
}
|
||||
|
||||
if (data.input)
|
||||
add_to_group("_vp_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
||||
if (data.unhandled_input)
|
||||
add_to_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_id()));
|
||||
if (data.unhandled_key_input)
|
||||
add_to_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_id()));
|
||||
|
||||
get_tree()->node_count++;
|
||||
|
||||
|
@ -90,11 +90,11 @@ void Node::_notification(int p_notification) {
|
|||
|
||||
get_tree()->node_count--;
|
||||
if (data.input)
|
||||
remove_from_group("_vp_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
||||
if (data.unhandled_input)
|
||||
remove_from_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_id()));
|
||||
if (data.unhandled_key_input)
|
||||
remove_from_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_id()));
|
||||
|
||||
data.pause_owner = NULL;
|
||||
if (data.path_cache) {
|
||||
|
@ -1115,9 +1115,9 @@ void Node::set_process_input(bool p_enable) {
|
|||
return;
|
||||
|
||||
if (p_enable)
|
||||
add_to_group("_vp_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
||||
else
|
||||
remove_from_group("_vp_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_input" + itos(get_viewport()->get_instance_id()));
|
||||
}
|
||||
|
||||
bool Node::is_processing_input() const {
|
||||
|
@ -1133,9 +1133,9 @@ void Node::set_process_unhandled_input(bool p_enable) {
|
|||
return;
|
||||
|
||||
if (p_enable)
|
||||
add_to_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_id()));
|
||||
else
|
||||
remove_from_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_unhandled_input" + itos(get_viewport()->get_instance_id()));
|
||||
}
|
||||
|
||||
bool Node::is_processing_unhandled_input() const {
|
||||
|
@ -1151,9 +1151,9 @@ void Node::set_process_unhandled_key_input(bool p_enable) {
|
|||
return;
|
||||
|
||||
if (p_enable)
|
||||
add_to_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_ID()));
|
||||
add_to_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_id()));
|
||||
else
|
||||
remove_from_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_ID()));
|
||||
remove_from_group("_vp_unhandled_key_input" + itos(get_viewport()->get_instance_id()));
|
||||
}
|
||||
|
||||
bool Node::is_processing_unhandled_key_input() const {
|
||||
|
@ -2606,7 +2606,7 @@ static void _Node_debug_sn(Object *p_obj) {
|
|||
path = n->get_name();
|
||||
else
|
||||
path = String(p->get_name()) + "/" + p->get_path_to(n);
|
||||
print_line(itos(p_obj->get_instance_ID()) + "- Stray Node: " + path + " (Type: " + n->get_class() + ")");
|
||||
print_line(itos(p_obj->get_instance_id()) + "- Stray Node: " + path + " (Type: " + n->get_class() + ")");
|
||||
}
|
||||
|
||||
void Node::_print_stray_nodes() {
|
||||
|
|
|
@ -1106,7 +1106,7 @@ static void _fill_array(Node *p_node, Array &array, int p_level) {
|
|||
array.push_back(p_level);
|
||||
array.push_back(p_node->get_name());
|
||||
array.push_back(p_node->get_class());
|
||||
array.push_back(p_node->get_instance_ID());
|
||||
array.push_back(p_node->get_instance_id());
|
||||
for (int i = 0; i < p_node->get_child_count(); i++) {
|
||||
|
||||
_fill_array(p_node->get_child(i), array, p_level + 1);
|
||||
|
@ -1141,7 +1141,7 @@ void SceneTree::queue_delete(Object *p_object) {
|
|||
_THREAD_SAFE_METHOD_
|
||||
ERR_FAIL_NULL(p_object);
|
||||
p_object->_is_queued_for_deletion = true;
|
||||
delete_queue.push_back(p_object->get_instance_ID());
|
||||
delete_queue.push_back(p_object->get_instance_id());
|
||||
}
|
||||
|
||||
int SceneTree::get_node_count() const {
|
||||
|
|
|
@ -2303,7 +2303,7 @@ List<Control *>::Element *Viewport::_gui_show_modal(Control *p_control) {
|
|||
|
||||
gui.modal_stack.push_back(p_control);
|
||||
if (gui.key_focus)
|
||||
p_control->_modal_set_prev_focus_owner(gui.key_focus->get_instance_ID());
|
||||
p_control->_modal_set_prev_focus_owner(gui.key_focus->get_instance_id());
|
||||
else
|
||||
p_control->_modal_set_prev_focus_owner(0);
|
||||
|
||||
|
@ -2769,7 +2769,7 @@ Viewport::Viewport() {
|
|||
set_shadow_atlas_quadrant_subdiv(2, SHADOW_ATLAS_QUADRANT_SUBDIV_16);
|
||||
set_shadow_atlas_quadrant_subdiv(3, SHADOW_ATLAS_QUADRANT_SUBDIV_64);
|
||||
|
||||
String id = itos(get_instance_ID());
|
||||
String id = itos(get_instance_id());
|
||||
input_group = "_vp_input" + id;
|
||||
gui_input_group = "_vp_gui_input" + id;
|
||||
unhandled_input_group = "_vp_unhandled_input" + id;
|
||||
|
|
|
@ -83,11 +83,11 @@ public:
|
|||
void set_param(PhysicsServer::PinJointParam p_param, real_t p_value);
|
||||
real_t get_param(PhysicsServer::PinJointParam p_param) const;
|
||||
|
||||
void set_pos_A(const Vector3 &p_pos) { m_pivotInA = p_pos; }
|
||||
void set_pos_B(const Vector3 &p_pos) { m_pivotInB = p_pos; }
|
||||
void set_pos_a(const Vector3 &p_pos) { m_pivotInA = p_pos; }
|
||||
void set_pos_b(const Vector3 &p_pos) { m_pivotInB = p_pos; }
|
||||
|
||||
Vector3 get_pos_A() { return m_pivotInB; }
|
||||
Vector3 get_pos_B() { return m_pivotInA; }
|
||||
Vector3 get_pos_a() { return m_pivotInB; }
|
||||
Vector3 get_pos_b() { return m_pivotInA; }
|
||||
|
||||
PinJointSW(BodySW *p_body_a, const Vector3 &p_pos_a, BodySW *p_body_b, const Vector3 &p_pos_b);
|
||||
~PinJointSW();
|
||||
|
|
|
@ -350,7 +350,7 @@ void PhysicsServerSW::area_set_shape_disabled(RID p_area, int p_shape_idx, bool
|
|||
area->set_shape_as_disabled(p_shape_idx, p_disabled);
|
||||
}
|
||||
|
||||
void PhysicsServerSW::area_attach_object_instance_ID(RID p_area, ObjectID p_ID) {
|
||||
void PhysicsServerSW::area_attach_object_instance_id(RID p_area, ObjectID p_ID) {
|
||||
|
||||
if (space_owner.owns(p_area)) {
|
||||
SpaceSW *space = space_owner.get(p_area);
|
||||
|
@ -360,7 +360,7 @@ void PhysicsServerSW::area_attach_object_instance_ID(RID p_area, ObjectID p_ID)
|
|||
ERR_FAIL_COND(!area);
|
||||
area->set_instance_id(p_ID);
|
||||
}
|
||||
ObjectID PhysicsServerSW::area_get_object_instance_ID(RID p_area) const {
|
||||
ObjectID PhysicsServerSW::area_get_object_instance_id(RID p_area) const {
|
||||
|
||||
if (space_owner.owns(p_area)) {
|
||||
SpaceSW *space = space_owner.get(p_area);
|
||||
|
@ -438,7 +438,7 @@ void PhysicsServerSW::area_set_monitor_callback(RID p_area, Object *p_receiver,
|
|||
AreaSW *area = area_owner.get(p_area);
|
||||
ERR_FAIL_COND(!area);
|
||||
|
||||
area->set_monitor_callback(p_receiver ? p_receiver->get_instance_ID() : 0, p_method);
|
||||
area->set_monitor_callback(p_receiver ? p_receiver->get_instance_id() : 0, p_method);
|
||||
}
|
||||
|
||||
void PhysicsServerSW::area_set_ray_pickable(RID p_area, bool p_enable) {
|
||||
|
@ -462,7 +462,7 @@ void PhysicsServerSW::area_set_area_monitor_callback(RID p_area, Object *p_recei
|
|||
AreaSW *area = area_owner.get(p_area);
|
||||
ERR_FAIL_COND(!area);
|
||||
|
||||
area->set_area_monitor_callback(p_receiver ? p_receiver->get_instance_ID() : 0, p_method);
|
||||
area->set_area_monitor_callback(p_receiver ? p_receiver->get_instance_id() : 0, p_method);
|
||||
}
|
||||
|
||||
/* BODY API */
|
||||
|
@ -662,7 +662,7 @@ uint32_t PhysicsServerSW::body_get_collision_mask(RID p_body) const {
|
|||
return body->get_collision_mask();
|
||||
}
|
||||
|
||||
void PhysicsServerSW::body_attach_object_instance_ID(RID p_body, uint32_t p_ID) {
|
||||
void PhysicsServerSW::body_attach_object_instance_id(RID p_body, uint32_t p_ID) {
|
||||
|
||||
BodySW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND(!body);
|
||||
|
@ -670,7 +670,7 @@ void PhysicsServerSW::body_attach_object_instance_ID(RID p_body, uint32_t p_ID)
|
|||
body->set_instance_id(p_ID);
|
||||
};
|
||||
|
||||
uint32_t PhysicsServerSW::body_get_object_instance_ID(RID p_body) const {
|
||||
uint32_t PhysicsServerSW::body_get_object_instance_id(RID p_body) const {
|
||||
|
||||
BodySW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND_V(!body, 0);
|
||||
|
@ -877,7 +877,7 @@ void PhysicsServerSW::body_set_force_integration_callback(RID p_body, Object *p_
|
|||
|
||||
BodySW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND(!body);
|
||||
body->set_force_integration_callback(p_receiver ? p_receiver->get_instance_ID() : ObjectID(0), p_method, p_udata);
|
||||
body->set_force_integration_callback(p_receiver ? p_receiver->get_instance_id() : ObjectID(0), p_method, p_udata);
|
||||
}
|
||||
|
||||
void PhysicsServerSW::body_set_ray_pickable(RID p_body, bool p_enable) {
|
||||
|
@ -944,38 +944,38 @@ real_t PhysicsServerSW::pin_joint_get_param(RID p_joint, PinJointParam p_param)
|
|||
return pin_joint->get_param(p_param);
|
||||
}
|
||||
|
||||
void PhysicsServerSW::pin_joint_set_local_A(RID p_joint, const Vector3 &p_A) {
|
||||
void PhysicsServerSW::pin_joint_set_local_a(RID p_joint, const Vector3 &p_A) {
|
||||
|
||||
JointSW *joint = joint_owner.get(p_joint);
|
||||
ERR_FAIL_COND(!joint);
|
||||
ERR_FAIL_COND(joint->get_type() != JOINT_PIN);
|
||||
PinJointSW *pin_joint = static_cast<PinJointSW *>(joint);
|
||||
pin_joint->set_pos_A(p_A);
|
||||
pin_joint->set_pos_a(p_A);
|
||||
}
|
||||
Vector3 PhysicsServerSW::pin_joint_get_local_A(RID p_joint) const {
|
||||
Vector3 PhysicsServerSW::pin_joint_get_local_a(RID p_joint) const {
|
||||
|
||||
JointSW *joint = joint_owner.get(p_joint);
|
||||
ERR_FAIL_COND_V(!joint, Vector3());
|
||||
ERR_FAIL_COND_V(joint->get_type() != JOINT_PIN, Vector3());
|
||||
PinJointSW *pin_joint = static_cast<PinJointSW *>(joint);
|
||||
return pin_joint->get_pos_A();
|
||||
return pin_joint->get_pos_a();
|
||||
}
|
||||
|
||||
void PhysicsServerSW::pin_joint_set_local_B(RID p_joint, const Vector3 &p_B) {
|
||||
void PhysicsServerSW::pin_joint_set_local_b(RID p_joint, const Vector3 &p_B) {
|
||||
|
||||
JointSW *joint = joint_owner.get(p_joint);
|
||||
ERR_FAIL_COND(!joint);
|
||||
ERR_FAIL_COND(joint->get_type() != JOINT_PIN);
|
||||
PinJointSW *pin_joint = static_cast<PinJointSW *>(joint);
|
||||
pin_joint->set_pos_B(p_B);
|
||||
pin_joint->set_pos_b(p_B);
|
||||
}
|
||||
Vector3 PhysicsServerSW::pin_joint_get_local_B(RID p_joint) const {
|
||||
Vector3 PhysicsServerSW::pin_joint_get_local_b(RID p_joint) const {
|
||||
|
||||
JointSW *joint = joint_owner.get(p_joint);
|
||||
ERR_FAIL_COND_V(!joint, Vector3());
|
||||
ERR_FAIL_COND_V(joint->get_type() != JOINT_PIN, Vector3());
|
||||
PinJointSW *pin_joint = static_cast<PinJointSW *>(joint);
|
||||
return pin_joint->get_pos_B();
|
||||
return pin_joint->get_pos_b();
|
||||
}
|
||||
|
||||
RID PhysicsServerSW::joint_create_hinge(RID p_body_A, const Transform &p_frame_A, RID p_body_B, const Transform &p_frame_B) {
|
||||
|
|
|
@ -121,8 +121,8 @@ public:
|
|||
|
||||
virtual void area_set_shape_disabled(RID p_area, int p_shape_idx, bool p_disabled);
|
||||
|
||||
virtual void area_attach_object_instance_ID(RID p_area, ObjectID p_ID);
|
||||
virtual ObjectID area_get_object_instance_ID(RID p_area) const;
|
||||
virtual void area_attach_object_instance_id(RID p_area, ObjectID p_ID);
|
||||
virtual ObjectID area_get_object_instance_id(RID p_area) const;
|
||||
|
||||
virtual void area_set_param(RID p_area, AreaParameter p_param, const Variant &p_value);
|
||||
virtual void area_set_transform(RID p_area, const Transform &p_transform);
|
||||
|
@ -165,8 +165,8 @@ public:
|
|||
virtual void body_remove_shape(RID p_body, int p_shape_idx);
|
||||
virtual void body_clear_shapes(RID p_body);
|
||||
|
||||
virtual void body_attach_object_instance_ID(RID p_body, uint32_t p_ID);
|
||||
virtual uint32_t body_get_object_instance_ID(RID p_body) const;
|
||||
virtual void body_attach_object_instance_id(RID p_body, uint32_t p_ID);
|
||||
virtual uint32_t body_get_object_instance_id(RID p_body) const;
|
||||
|
||||
virtual void body_set_enable_continuous_collision_detection(RID p_body, bool p_enable);
|
||||
virtual bool body_is_continuous_collision_detection_enabled(RID p_body) const;
|
||||
|
@ -226,11 +226,11 @@ public:
|
|||
virtual void pin_joint_set_param(RID p_joint, PinJointParam p_param, real_t p_value);
|
||||
virtual real_t pin_joint_get_param(RID p_joint, PinJointParam p_param) const;
|
||||
|
||||
virtual void pin_joint_set_local_A(RID p_joint, const Vector3 &p_A);
|
||||
virtual Vector3 pin_joint_get_local_A(RID p_joint) const;
|
||||
virtual void pin_joint_set_local_a(RID p_joint, const Vector3 &p_A);
|
||||
virtual Vector3 pin_joint_get_local_a(RID p_joint) const;
|
||||
|
||||
virtual void pin_joint_set_local_B(RID p_joint, const Vector3 &p_B);
|
||||
virtual Vector3 pin_joint_get_local_B(RID p_joint) const;
|
||||
virtual void pin_joint_set_local_b(RID p_joint, const Vector3 &p_B);
|
||||
virtual Vector3 pin_joint_get_local_b(RID p_joint) const;
|
||||
|
||||
virtual RID joint_create_hinge(RID p_body_A, const Transform &p_frame_A, RID p_body_B, const Transform &p_frame_B);
|
||||
virtual RID joint_create_hinge_simple(RID p_body_A, const Vector3 &p_pivot_A, const Vector3 &p_axis_A, RID p_body_B, const Vector3 &p_pivot_B, const Vector3 &p_axis_B);
|
||||
|
|
|
@ -415,7 +415,7 @@ void Physics2DServerSW::area_clear_shapes(RID p_area) {
|
|||
area->remove_shape(0);
|
||||
}
|
||||
|
||||
void Physics2DServerSW::area_attach_object_instance_ID(RID p_area, ObjectID p_ID) {
|
||||
void Physics2DServerSW::area_attach_object_instance_id(RID p_area, ObjectID p_ID) {
|
||||
|
||||
if (space_owner.owns(p_area)) {
|
||||
Space2DSW *space = space_owner.get(p_area);
|
||||
|
@ -425,7 +425,7 @@ void Physics2DServerSW::area_attach_object_instance_ID(RID p_area, ObjectID p_ID
|
|||
ERR_FAIL_COND(!area);
|
||||
area->set_instance_id(p_ID);
|
||||
}
|
||||
ObjectID Physics2DServerSW::area_get_object_instance_ID(RID p_area) const {
|
||||
ObjectID Physics2DServerSW::area_get_object_instance_id(RID p_area) const {
|
||||
|
||||
if (space_owner.owns(p_area)) {
|
||||
Space2DSW *space = space_owner.get(p_area);
|
||||
|
@ -510,7 +510,7 @@ void Physics2DServerSW::area_set_monitor_callback(RID p_area, Object *p_receiver
|
|||
Area2DSW *area = area_owner.get(p_area);
|
||||
ERR_FAIL_COND(!area);
|
||||
|
||||
area->set_monitor_callback(p_receiver ? p_receiver->get_instance_ID() : 0, p_method);
|
||||
area->set_monitor_callback(p_receiver ? p_receiver->get_instance_id() : 0, p_method);
|
||||
}
|
||||
|
||||
void Physics2DServerSW::area_set_area_monitor_callback(RID p_area, Object *p_receiver, const StringName &p_method) {
|
||||
|
@ -518,7 +518,7 @@ void Physics2DServerSW::area_set_area_monitor_callback(RID p_area, Object *p_rec
|
|||
Area2DSW *area = area_owner.get(p_area);
|
||||
ERR_FAIL_COND(!area);
|
||||
|
||||
area->set_area_monitor_callback(p_receiver ? p_receiver->get_instance_ID() : 0, p_method);
|
||||
area->set_area_monitor_callback(p_receiver ? p_receiver->get_instance_id() : 0, p_method);
|
||||
}
|
||||
|
||||
/* BODY API */
|
||||
|
@ -706,7 +706,7 @@ Physics2DServerSW::CCDMode Physics2DServerSW::body_get_continuous_collision_dete
|
|||
return body->get_continuous_collision_detection_mode();
|
||||
}
|
||||
|
||||
void Physics2DServerSW::body_attach_object_instance_ID(RID p_body, uint32_t p_ID) {
|
||||
void Physics2DServerSW::body_attach_object_instance_id(RID p_body, uint32_t p_ID) {
|
||||
|
||||
Body2DSW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND(!body);
|
||||
|
@ -714,7 +714,7 @@ void Physics2DServerSW::body_attach_object_instance_ID(RID p_body, uint32_t p_ID
|
|||
body->set_instance_id(p_ID);
|
||||
};
|
||||
|
||||
uint32_t Physics2DServerSW::body_get_object_instance_ID(RID p_body) const {
|
||||
uint32_t Physics2DServerSW::body_get_object_instance_id(RID p_body) const {
|
||||
|
||||
Body2DSW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND_V(!body, 0);
|
||||
|
@ -922,7 +922,7 @@ void Physics2DServerSW::body_set_force_integration_callback(RID p_body, Object *
|
|||
|
||||
Body2DSW *body = body_owner.get(p_body);
|
||||
ERR_FAIL_COND(!body);
|
||||
body->set_force_integration_callback(p_receiver ? p_receiver->get_instance_ID() : ObjectID(0), p_method, p_udata);
|
||||
body->set_force_integration_callback(p_receiver ? p_receiver->get_instance_id() : ObjectID(0), p_method, p_udata);
|
||||
}
|
||||
|
||||
bool Physics2DServerSW::body_collide_shape(RID p_body, int p_body_shape, RID p_shape, const Transform2D &p_shape_xform, const Vector2 &p_motion, Vector2 *r_results, int p_result_max, int &r_result_count) {
|
||||
|
|
|
@ -128,8 +128,8 @@ public:
|
|||
virtual void area_remove_shape(RID p_area, int p_shape_idx);
|
||||
virtual void area_clear_shapes(RID p_area);
|
||||
|
||||
virtual void area_attach_object_instance_ID(RID p_area, ObjectID p_ID);
|
||||
virtual ObjectID area_get_object_instance_ID(RID p_area) const;
|
||||
virtual void area_attach_object_instance_id(RID p_area, ObjectID p_ID);
|
||||
virtual ObjectID area_get_object_instance_id(RID p_area) const;
|
||||
|
||||
virtual void area_set_param(RID p_area, AreaParameter p_param, const Variant &p_value);
|
||||
virtual void area_set_transform(RID p_area, const Transform2D &p_transform);
|
||||
|
@ -172,8 +172,8 @@ public:
|
|||
virtual void body_set_shape_disabled(RID p_body, int p_shape, bool p_disabled);
|
||||
virtual void body_set_shape_as_one_way_collision(RID p_body, int p_shape, bool p_enabled);
|
||||
|
||||
virtual void body_attach_object_instance_ID(RID p_body, uint32_t p_ID);
|
||||
virtual uint32_t body_get_object_instance_ID(RID p_body) const;
|
||||
virtual void body_attach_object_instance_id(RID p_body, uint32_t p_ID);
|
||||
virtual uint32_t body_get_object_instance_id(RID p_body) const;
|
||||
|
||||
virtual void body_set_continuous_collision_detection_mode(RID p_body, CCDMode p_mode);
|
||||
virtual CCDMode body_get_continuous_collision_detection_mode(RID p_body) const;
|
||||
|
|
|
@ -51,7 +51,7 @@ void Physics2DServerWrapMT::_thread_callback(void *_instance) {
|
|||
|
||||
void Physics2DServerWrapMT::thread_loop() {
|
||||
|
||||
server_thread = Thread::get_caller_ID();
|
||||
server_thread = Thread::get_caller_id();
|
||||
|
||||
OS::get_singleton()->make_rendering_thread();
|
||||
|
||||
|
@ -169,12 +169,12 @@ Physics2DServerWrapMT::Physics2DServerWrapMT(Physics2DServer *p_contained, bool
|
|||
damped_spring_joint_pool_max_size = GLOBAL_GET("memory/limits/multithreaded_server/rid_pool_prealloc");
|
||||
|
||||
if (!p_create_thread) {
|
||||
server_thread = Thread::get_caller_ID();
|
||||
server_thread = Thread::get_caller_id();
|
||||
} else {
|
||||
server_thread = 0;
|
||||
}
|
||||
|
||||
main_thread = Thread::get_caller_ID();
|
||||
main_thread = Thread::get_caller_id();
|
||||
first_frame = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ public:
|
|||
//these work well, but should be used from the main thread only
|
||||
bool shape_collide(RID p_shape_A, const Transform2D &p_xform_A, const Vector2 &p_motion_A, RID p_shape_B, const Transform2D &p_xform_B, const Vector2 &p_motion_B, Vector2 *r_results, int p_result_max, int &r_result_count) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_ID(), false);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), false);
|
||||
return physics_2d_server->shape_collide(p_shape_A, p_xform_A, p_motion_A, p_shape_B, p_xform_B, p_motion_B, r_results, p_result_max, r_result_count);
|
||||
}
|
||||
|
||||
|
@ -114,20 +114,20 @@ public:
|
|||
// this function only works on fixed process, errors and returns null otherwise
|
||||
Physics2DDirectSpaceState *space_get_direct_state(RID p_space) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_ID(), NULL);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), NULL);
|
||||
return physics_2d_server->space_get_direct_state(p_space);
|
||||
}
|
||||
|
||||
FUNC2(space_set_debug_contacts, RID, int);
|
||||
virtual Vector<Vector2> space_get_contacts(RID p_space) const {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_ID(), Vector<Vector2>());
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), Vector<Vector2>());
|
||||
return physics_2d_server->space_get_contacts(p_space);
|
||||
}
|
||||
|
||||
virtual int space_get_contact_count(RID p_space) const {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_ID(), 0);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), 0);
|
||||
return physics_2d_server->space_get_contact_count(p_space);
|
||||
}
|
||||
|
||||
|
@ -153,8 +153,8 @@ public:
|
|||
FUNC2(area_remove_shape, RID, int);
|
||||
FUNC1(area_clear_shapes, RID);
|
||||
|
||||
FUNC2(area_attach_object_instance_ID, RID, ObjectID);
|
||||
FUNC1RC(ObjectID, area_get_object_instance_ID, RID);
|
||||
FUNC2(area_attach_object_instance_id, RID, ObjectID);
|
||||
FUNC1RC(ObjectID, area_get_object_instance_id, RID);
|
||||
|
||||
FUNC3(area_set_param, RID, AreaParameter, const Variant &);
|
||||
FUNC2(area_set_transform, RID, const Transform2D &);
|
||||
|
@ -198,8 +198,8 @@ public:
|
|||
FUNC2(body_remove_shape, RID, int);
|
||||
FUNC1(body_clear_shapes, RID);
|
||||
|
||||
FUNC2(body_attach_object_instance_ID, RID, uint32_t);
|
||||
FUNC1RC(uint32_t, body_get_object_instance_ID, RID);
|
||||
FUNC2(body_attach_object_instance_id, RID, uint32_t);
|
||||
FUNC1RC(uint32_t, body_get_object_instance_id, RID);
|
||||
|
||||
FUNC2(body_set_continuous_collision_detection_mode, RID, CCDMode);
|
||||
FUNC1RC(CCDMode, body_get_continuous_collision_detection_mode, RID);
|
||||
|
@ -249,7 +249,7 @@ public:
|
|||
|
||||
bool body_test_motion(RID p_body, const Transform2D &p_from, const Vector2 &p_motion, real_t p_margin = 0.001, MotionResult *r_result = NULL) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_ID(), false);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), false);
|
||||
return physics_2d_server->body_test_motion(p_body, p_from, p_motion, p_margin, r_result);
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue