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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue