godot/core/object/script_language.cpp

/**************************************************************************/
/*  script_language.cpp                                                   */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "script_language.h"

#include "core/config/project_settings.h"
#include "core/debugger/engine_debugger.h"
#include "core/debugger/script_debugger.h"
#include "core/io/resource_loader.h"

#include <stdint.h>

ScriptLanguage *ScriptServer::_languages[MAX_LANGUAGES];
int ScriptServer::_language_count =;
bool ScriptServer::languages_ready =;
Mutex ScriptServer::languages_mutex;

bool ScriptServer::scripting_enabled =;
bool ScriptServer::reload_scripts_on_save =;
ScriptEditRequestFunction ScriptServer::edit_request_func =;

void Script::_notification(int p_what) {}

Variant Script::_get_property_default_value(const StringName &p_property) {}

TypedArray<Dictionary> Script::_get_script_property_list() {}

TypedArray<Dictionary> Script::_get_script_method_list() {}

TypedArray<Dictionary> Script::_get_script_signal_list() {}

Dictionary Script::_get_script_constant_map() {}

void Script::_set_debugger_break_language() {}

int Script::get_script_method_argument_count(const StringName &p_method, bool *r_is_valid) const {}

#ifdef TOOLS_ENABLED

PropertyInfo Script::get_class_category() const {}

#endif // TOOLS_ENABLED

void Script::_bind_methods() {}

void Script::reload_from_file() {}

void ScriptServer::set_scripting_enabled(bool p_enabled) {}

bool ScriptServer::is_scripting_enabled() {}

ScriptLanguage *ScriptServer::get_language(int p_idx) {}

ScriptLanguage *ScriptServer::get_language_for_extension(const String &p_extension) {}

Error ScriptServer::register_language(ScriptLanguage *p_language) {}

Error ScriptServer::unregister_language(const ScriptLanguage *p_language) {}

void ScriptServer::init_languages() {}

void ScriptServer::finish_languages() {}

bool ScriptServer::are_languages_initialized() {}

void ScriptServer::set_reload_scripts_on_save(bool p_enable) {}

bool ScriptServer::is_reload_scripts_on_save_enabled() {}

void ScriptServer::thread_enter() {}

void ScriptServer::thread_exit() {}

HashMap<StringName, ScriptServer::GlobalScriptClass> ScriptServer::global_classes;
HashMap<StringName, Vector<StringName>> ScriptServer::inheriters_cache;
bool ScriptServer::inheriters_cache_dirty =;

void ScriptServer::global_classes_clear() {}

void ScriptServer::add_global_class(const StringName &p_class, const StringName &p_base, const StringName &p_language, const String &p_path) {}

void ScriptServer::remove_global_class(const StringName &p_class) {}

void ScriptServer::get_inheriters_list(const StringName &p_base_type, List<StringName> *r_classes) {}

void ScriptServer::remove_global_class_by_path(const String &p_path) {}

bool ScriptServer::is_global_class(const StringName &p_class) {}

StringName ScriptServer::get_global_class_language(const StringName &p_class) {}

String ScriptServer::get_global_class_path(const String &p_class) {}

StringName ScriptServer::get_global_class_base(const String &p_class) {}

StringName ScriptServer::get_global_class_native_base(const String &p_class) {}

void ScriptServer::get_global_class_list(List<StringName> *r_global_classes) {}

void ScriptServer::save_global_classes() {}

////////////////////

ScriptCodeCompletionCache *ScriptCodeCompletionCache::singleton =;
ScriptCodeCompletionCache::ScriptCodeCompletionCache() {}

void ScriptLanguage::get_core_type_words(List<String> *p_core_type_words) const {}

void ScriptLanguage::frame() {}

TypedArray<int> ScriptLanguage::CodeCompletionOption::get_option_characteristics(const String &p_base) {}

void ScriptLanguage::CodeCompletionOption::clear_characteristics() {}

TypedArray<int> ScriptLanguage::CodeCompletionOption::get_option_cached_characteristics() const {}

void ScriptLanguage::_bind_methods() {}

bool PlaceHolderScriptInstance::set(const StringName &p_name, const Variant &p_value) {}

bool PlaceHolderScriptInstance::get(const StringName &p_name, Variant &r_ret) const {}

void PlaceHolderScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const {}

Variant::Type PlaceHolderScriptInstance::get_property_type(const StringName &p_name, bool *r_is_valid) const {}

void PlaceHolderScriptInstance::get_method_list(List<MethodInfo> *p_list) const {}

bool PlaceHolderScriptInstance::has_method(const StringName &p_method) const {}

Variant PlaceHolderScriptInstance::callp(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error) {}

void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, const HashMap<StringName, Variant> &p_values) {}

void PlaceHolderScriptInstance::property_set_fallback(const StringName &p_name, const Variant &p_value, bool *r_valid) {}

Variant PlaceHolderScriptInstance::property_get_fallback(const StringName &p_name, bool *r_valid) {}

PlaceHolderScriptInstance::PlaceHolderScriptInstance(ScriptLanguage *p_language, Ref<Script> p_script, Object *p_owner) :{}

PlaceHolderScriptInstance::~PlaceHolderScriptInstance() {}