GDScript: Use GDSOFTCLASS for some internal classes

This commit is contained in:
Danil Alexeev
2026-06-01 14:51:10 +03:00
parent dff2b9bb66
commit cdbaa55014
3 changed files with 5 additions and 5 deletions
@@ -38,7 +38,7 @@
#include "editor/translations/editor_translation_parser.h"
class GDScriptEditorTranslationParserPlugin : public EditorTranslationParserPlugin {
GDCLASS(GDScriptEditorTranslationParserPlugin, EditorTranslationParserPlugin);
GDSOFTCLASS(GDScriptEditorTranslationParserPlugin, EditorTranslationParserPlugin);
const HashMap<int, GDScriptTokenizer::CommentData> *comment_data = nullptr;
@@ -33,7 +33,7 @@
#include "editor/plugins/editor_plugin.h"
class GDScriptLanguageServer : public EditorPlugin {
GDCLASS(GDScriptLanguageServer, EditorPlugin);
GDSOFTCLASS(GDScriptLanguageServer, EditorPlugin);
Thread thread;
bool thread_running = false;
+3 -3
View File
@@ -80,8 +80,8 @@ GDScriptCache *gdscript_cache = nullptr;
Ref<GDScriptEditorTranslationParserPlugin> gdscript_translation_parser_plugin;
class EditorExportGDScript : public EditorExportPlugin {
GDCLASS(EditorExportGDScript, EditorExportPlugin);
class GDScriptExportPlugin : public EditorExportPlugin {
GDSOFTCLASS(GDScriptExportPlugin, EditorExportPlugin);
static constexpr EditorExportPreset::ScriptExportMode DEFAULT_SCRIPT_MODE = EditorExportPreset::MODE_SCRIPT_BINARY_TOKENS_COMPRESSED;
EditorExportPreset::ScriptExportMode script_mode = DEFAULT_SCRIPT_MODE;
@@ -121,7 +121,7 @@ public:
};
static void _editor_init() {
Ref<EditorExportGDScript> gd_export;
Ref<GDScriptExportPlugin> gd_export;
gd_export.instantiate();
EditorExport::get_singleton()->add_export_plugin(gd_export);