Introduce EditorLanguage and move ScriptLanguage::complete_code into it.

This commit is contained in:
HolonProduction
2026-03-28 21:49:43 +01:00
parent a0375dde96
commit 623809d89e
12 changed files with 199 additions and 16 deletions
+12
View File
@@ -32,6 +32,18 @@
#include "core/object/class_db.h"
ScriptLanguageExtension::ScriptLanguageExtension() {
#ifdef TOOLS_ENABLED
editor_adapter = memnew(EditorAdapter(this));
#endif // TOOLS_ENABLED
}
ScriptLanguageExtension::~ScriptLanguageExtension() {
#ifdef TOOLS_ENABLED
memdelete(editor_adapter);
#endif // TOOLS_ENABLED
}
void ScriptExtension::_bind_methods() {
GDVIRTUAL_BIND(_editor_can_reload_from_file);
GDVIRTUAL_BIND(_placeholder_erased, "placeholder");